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

Determining DataBoundGrid Name

Is there a way to get the GridDataBoundGrid name associated with a tabPageExt? Currently I have a switch statement on the tabName and set the grid name accordingly but was wondering if there was a better way.

2 Replies

AD Administrator Syncfusion Team September 30, 2003 12:33 PM UTC

I don't think so. Both objects require the name to be set. So if you change the Contorl.Name of the grid then you should also change the name of the tab and vice versa. Stefan

TH Thomas September 30, 2003 02:24 PM UTC

I'm not shure if this would be a solution for you: foreach( TabPageExt tab in this.tabControlExt1.TabPages ) { foreach( Control ctrl in tab.Controls ) { if( ctrl is Syncfusion.Windows.Forms.Grid.GridDataBoundGrid ) { ctrl.Name = tab.Name + "Grid"; } } } Regards Thomas

Live Chat Icon For mobile
Up arrow icon