We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Getting current item in GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

12688 Apr 7,2004 03:38 PM Apr 9,2004 12:46 PM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On April 7, 2004 03:38 PM

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!

Administrator [Syncfusion]
Replied On April 7, 2004 08:20 PM

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

Administrator [Syncfusion]
Replied On April 9, 2004 12:46 PM

Works perfectly - thanks.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;