Getting current item in GridGroupingControl

I''m switching from GridDataBoundGrid to GridGroupingControl. I want to get an event when the user selects a row and get my data from the bound DataTable. I used to have something like this as my grid_CurrentCellActivated: GridModelDataBinder binder = grid.Binder; int binderposition = binder.CurrentPosition; System.Data.DataView dv = grid.DataSource as System.Data.DataView; System.Data.DataRowView rowview = dv[binderposition]; MyStrongType item = rowview.Row as MyStrongType; //do something However, I''m unclear what the equiavlent is for GridGroupingControl. Thanks!

2 Replies

AD Administrator Syncfusion Team April 8, 2004 12:20 AM UTC

The GridGroupingControl has a family of events, TableControlXXXXXXXXX, that mimic the ones from teh GridControlBase. So, you can use TableControlCurrentCellActivated. In this forum thread, there is an explanation of how you can get the DataRow from the current record. http://www.syncfusion.com/forums/message.asp?MessageID=10442


AD Administrator Syncfusion Team April 9, 2004 04:46 PM UTC

Works perfectly - thanks.

Loader.
Up arrow icon