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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Get the Column values

Thread ID:





52211 Nov 23,2006 12:25 PM UTC Nov 23,2006 01:03 PM UTC WinForms 1
Tags: GridControl
Tannearu Hazarathaiah Gupta
Asked On November 23, 2006 12:25 PM UTC

I am using Grid Data Bound Grid. I Get the Column values at runtime. Please resolve the problem ASAP


Administrator [Syncfusion]
Replied On November 23, 2006 01:03 PM UTC

Hi Tannearu,

You can use the MappingName propert to get the name of the column in a grid. Here is a code snippet to show this.

private void button1_Click(object sender, System.EventArgs e)
for(int i = 0;i< this.gridDataBoundGrid1.Model.ColCount;i++)
Console.WriteLine("MappingName : " + this.gridDataBoundGrid1.Binder.InternalColumns[i].MappingName);
Console.WriteLine("HeaderText : " + this.gridDataBoundGrid1.Binder.InternalColumns[i].HeaderText );

Sample : GDBGReadonlyCells.zip

Best Regards,


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