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.

Determining DataBoundGrid Name

Thread ID:





7537 Sep 30,2003 07:34 AM Sep 30,2003 10:24 AM Windows Forms 2
Tags: GridControl
Asked On September 30, 2003 07:34 AM

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.

Administrator [Syncfusion]
Replied On September 30, 2003 08: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. Stefan

Replied On September 30, 2003 10: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"; } } } Regards Thomas


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.