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.

Finding the System.Data.DataTable object bound to a GridTableDescriptor

Thread ID:





47794 Aug 11,2006 02:43 PM Aug 14,2006 02:01 AM Windows Forms 1
Tags: Grouping
Scott Mercer
Asked On August 11, 2006 02:43 PM


If I have a GridTableDescriptor object, how can I find out the specific System.Data.DataTable reference that it is bound to?


Administrator [Syncfusion]
Replied On August 14, 2006 02:01 AM

Hi Scott,

You can access the Related DataTable for TableDescriptor using GridTable.SourceList property. Please find the code snippet below

GridTableDescriptor gtd = this.gridGroupingControl1.GetTableDescriptor("TableName") as GridTableDescriptor;

GridTable gt = this.gridGroupingControl1.GetTable(gtd.Name);

DataView dv = gt.SourceList as DataView;
Console.WriteLine( "Table Name : " + dv.Table.TableName );

Let me know if this helps.
Best Regards,


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.