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

Moving Columns

Thread ID:





61933 Jun 5,2007 07:46 AM UTC Jun 5,2007 06:51 PM UTC WinForms 2
Tags: GridControl
Asked On June 5, 2007 07:46 AM UTC


To extract particular column value, i am using grid[row, col].Text, however if the user changes the column position...the above technique will fail..is there a better way of dng the same?

Raul Dsouza

Replied On June 5, 2007 07:52 AM UTC

Forgot to mention I am using a DGBG.

haneefm [Syncfusion]
Replied On June 5, 2007 06:51 PM UTC

Hi Rahul,

You can use the Binder.NameToColIndex method to get the column index of a column that matches a given name. Please try the below code and let me know if this helps.

this.grid.Model[row , this.grid.Binder.NameToColIndex("YourColumnName")].Text

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