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.

Moving Columns

Thread ID:

Created:

Updated:

Platform:

Replies:

61933 Jun 5,2007 03:46 AM Jun 5,2007 02:51 PM Windows Forms 2
loading
Tags: GridControl
Raul
Asked On June 5, 2007 03:46 AM

hi,

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?

Thanks,
Raul Dsouza

Raul
Replied On June 5, 2007 03:52 AM

Forgot to mention I am using a DGBG.

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

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

CONFIRMATION

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.

;