or
For i As Integer = 0 To dtusers.Rows.Count - 1
If fmEmailSubscription_chklistusers.Items.Count > 0 Then
For m As Integer = 0 To CheckedIds.Count - 1
If CheckedIds(m) = dtusers.Rows(i).Item(0) Then
fmEmailSubscription_chklistusers.SelectedValue = dtusers.Rows(i).Item(0)
fmEmailSubscription_chklistusers.SetSelected(fmEmailSubscription_chklistusers.SelectedIndex, True)
End
If
Next
fmEmailSubscription_chklistusers.SelectedValue = dtusers.Rows(i).Item(0)
End If
Next
| if (sender is GridCheckBoxCellElement) |
| { |
| GridCheckBoxCellElement g = (GridCheckBoxCellElement)sender; |
| MyObject o = (MyObject)g.RowInfo.DataBoundItem; |
| row = g.RowInfo; |
| if (row.Cells["checkboxcell"].Value.ToString() == "False" ) |
| { |
| row.Cells["othertextcell"].Value = ""; |
| } |
| else |
| { |
| row.Cells["txtKeyWord"].Value = o.myproperty; |
| } |
| } |
