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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl and Tag property to associate data

Thread ID:

Created:

Updated:

Platform:

Replies:

62497 Jun 15,2007 05:52 PM UTC Jun 15,2007 10:31 PM UTC WinForms 1
loading
Tags: GridControl
Vivien
Asked On June 15, 2007 05:52 PM UTC

Hi,

I have a question concerning the GridGroupingControl.

When I build my DataTable and at the same time as I add my DataRows, I would like to associate specific data for each rows, as what it is possible to do with the Tag Property of the ListViewItem class.
In order to get these data and to do something with when the user select another row for example (thanks to the SelectedRecordsChanged event of the grid, I think ?)

Please advice,
Best,

Saravanan A [Syncfusion]
Replied On June 15, 2007 10:31 PM UTC

Hi Vivien,

You can try adding an additional column to the table to hold the additional data for each row and make that column hidden in the grid.
Or you could have an HashTable, which takes the primary key of the corresponding row as the hashkey and the associated tagvalue as the hashValue. You can retrieve the corresponding hashvalue anytime while processing a datarow.
Is that, your requirement is to process when the user moves from one record to another record?. If so then you can use the CurrentRecordContextChange event. From this event's argument you can get the corresponding DataRowView of the binded DataTable.
Please refer to this sample.
http://websamples.syncfusion.com/samples/Grid.Windows/F62497/main.htm

Best Regards,
Saravanan

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.

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

;