The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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 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
THThomasSeptember 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