hi,
In my datagrid i have added the checkbox controls. Ihave done this with the help of "Template column". So now it creates as many check boxes depending upon the data's in my database. Now what i have done is , i have used a checkbox outside my datagrid. When i click this checkbox ie.. when this "checkbox.checked=true" then the checkboxes inside my datagrid should also be checked. I tried but could not find a solution.
I tried it this way
"" Dim dgitem As DataGridItem
Dim chkSelected As CheckBox
For Each dgitem In DataGrid1.Items
chkSelected = dgitem.FindControl("chkName")
If CheckBox1.Checked = True Then
chkSelected.Checked = True
End If
Next ""
while doing this ie when i check the checkbox outside the datagrid the check boxes inside ny datagrid is not getting enabled(checked).
help me to get a solution for this