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.
ADAdministrator Syncfusion Team September 30, 2003 07:33 AM
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.
THThomasSeptember 30, 2003 09:24 AM
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";