Click to See Complete Forum and Search --> : Please Help me. Its really urgent
wak
October 18th, 2003, 02:00 AM
I am using a templated column containing checkboxes in datagrid.
The problem is that after changing the state of checkboxes they are inaccessible. Findcontrol method always returns undefined.
Thanks in advance
WAK
redsolo
October 19th, 2003, 02:42 AM
hi,
i don't know where your problem is, and your descirption is not so clear.
i made a sample project, it works ok. if it can not give you any help. show some of your code. and most important , what is your problem is ?
hope helps
wak
October 20th, 2003, 04:15 AM
I have placed the three files in the rar archive.
1) Contains the screen shots of my pages to understand what I really want to do.
2) Aspx file where I am using the grid.
3) cs file where I am adding the templated checkbox columns dynamically.
I am waiting for your response.
Thanks in advance for giving your time and interest.
Bye
WAK
redsolo
October 20th, 2003, 09:55 AM
hi:
I just made a simple project used your DataGridTemplate Class, it works.
check your RolesArr[i] in lines:
CheckBox cb = (CheckBox)di.FindControl("chkRightsID?" + RolesArr[i]); in Populate_Data() function equal to columnName you pass it to DataGridTemplate Class.
i attach my files. maybe it can help.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.