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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Getting current item in GridGroupingControl

Thread ID:





12688 Apr 7,2004 07:38 PM UTC Apr 9,2004 04:46 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On April 7, 2004 07:38 PM UTC

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 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

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

Works perfectly - thanks.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon