or
GridViewCheckBoxColumn chkCol = radGridView1.MasterGridViewTemplate.Columns["Selected"] as GridViewCheckBoxColumn; | |
if (chkCol != null) | |
{ | |
radGridView1.MasterGridViewTemplate.Columns.Remove(chkCol); | |
GridViewCheckBoxColumn chkCol = new GridViewCheckBoxColumn(); | |
chkCol.DataType = typeof(int); | |
chkCol.UniqueName = "Selected"; | |
chkCol.FieldName = "Selected"; | |
chkCol.HeaderText = ""; | |
radGridView1.MasterGridViewTemplate.Columns.Add(chkCol); | |
} |
public
static IntPtr GetDC(Message msg)
{
if (msg.Msg != (int)WindowMessages.WM_NCPAINT)
{
return GetWindowDC(msg.HWnd);
}
int flags = (int)(DCX.DCX_CACHE | DCX.DCX_CLIPSIBLINGS | DCX.DCX_WINDOW );
IntPtr zero = IntPtr.Zero;
if (msg.WParam.ToInt32() != 1)
{
flags |= (
int)DCX.DCX_INTERSECTRGN;
zero = msg.WParam;
}
return GetDCEx(msg.HWnd, zero, flags);
}
this.radGVTables.Rows[i].IsSelected = false; |
The radGVTables_ValueChanged event fires and it is looking for the rowindex. But since it was the filter that was selected the rowindex is -1. |
1. Is there a way to change the rowindex or cycle through the rows? |
2. Is there a way to clear out all the checked checkboxes? |
3. How have others handled Checkboxes and Filters? |
Thank You |
Jerry |