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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

QueryCellFormattedText not called for child tables in GCC

Thread ID:





17999 Aug 21,2004 12:57 AM UTC Aug 21,2004 11:32 AM UTC WinForms 1
Tags: GridControl
Michael Feinstein
Asked On August 21, 2004 12:57 AM UTC

QueryCellFormattedText event is not invoked for child tables in GridGroupingControl. Example: take HierarchySample Add to the constructor: this.groupingGrid1.TableModel.QueryCellFormattedText += new GridCellTextEventHandler(TableModel_QueryCellFormattedText); Add to Form: private void TableModel_QueryCellFormattedText(object sender, GridCellTextEventArgs e) { Console.WriteLine(e.Value.ToString()); } Observe debug output, you will notice that only values for "Products" table are ever displayed. IS there any way to have this event triggered for the child tables as well ?

Administrator [Syncfusion]
Replied On August 21, 2004 11:32 AM UTC

There are different TableModels for each nested level, so you have to subscribe to the event for each level. We will eventually add a TableModelQueryCellFormattedText event to GridGroupingControl. What you can do now is loop through relations and then wire the event for each nested TableModel. You can iterate through groupingControl.TableDescriptor.Relations and then get a reference to the TableModel with groupingControl.GetTableModel(relationDescriptor.ChildTableName). Or if you know the names of the tables in your dataset, you can also call also groupingControl.GetTableModel(tableName). Once you have the GridTableModel you can wire the event.


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