GGC and TableControlCheckBoxClick Event

I have checkbox''s in both parent and child tables. Unless I first select the row with the checkbox, before clicking on the checkbox, I''m not getting the correct row. If there is no current row indicated (which occurs after clicking on the plus/minus) the DisplayElementKind is set to AddNewRecord in the eventhandler. If there is a current row indicated, and I click on a different row''s checkbox, I get the CurrentRow''s record, not the one I clicked on.
thx

1 Reply

AD Administrator Syncfusion Team August 25, 2006 05:59 AM UTC

Hi JMS,

Try thiscode to get a record.

//TableControlCheckBoxClick event
Record rec = e.TableControl.Table.DisplayElements[e.Inner.RowIndex].ParentRecord;
if( rec != null)
Console.WriteLine(rec.Info);

Thanks,
Haneef

Loader.
Up arrow icon