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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Determining DataBoundGrid Name

Thread ID:





7537 Sep 30,2003 11:34 AM UTC Sep 30,2003 02:24 PM UTC WinForms 2
Tags: GridControl
Asked On September 30, 2003 11:34 AM UTC

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 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

Replied On 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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon