NR
Nirmal Raja
Syncfusion Team
February 24, 2011 04:45 AM UTC
Hi Dave,
Thank you for your interest in Syncfusion products.
The exact field of the corresping column can be retrieved through the FieldToColIndex method. The column index can be retrieved from the inner arguments of the event.
Please refer the code below:
void gridGroupingControl1_TableControlCheckBoxClick(object sender, GridTableControlCellClickEventArgs e)
{
int fieldindex = gridGroupingControl1.TableModel.ColIndexToField(e.Inner.ColIndex);
GridColumnDescriptor field = gridGroupingControl1.TableDescriptor.Columns[fieldindex];
MessageBox.Show(field.Name);
}
Please let me know if you have any concern.
Regards,
Nirmal
DM
David Mecteaux
February 24, 2011 01:20 PM UTC
Hi Nirmal,
Thanks for the reply. There are two problems with the code you provided.
1) If the user moves a column to a new location you will get the wrong column name back.
2) Also I need a way to ignore or detect when the user selects a checkbox cell that is disabled too.