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

column index by name

I have a column that can move depending on the grid content. I know its name, I need to be able to determine its location so I can get its value (I know the row index already)


1 Reply

NA Nisha Arockiya A Syncfusion Team August 20, 2008 07:34 AM UTC


Hi Adrian,

Thanks for your interest in Syncfusion products.

Knowing the ColumnName and RowIndex you can use the following code to get corresponding CellValue.

MessageBox.Show(this.theDataGridView.Rows[RowIndex].Cells[ColumnName].Value.ToString());


Please let me any clarifications.

Regards,
Nisha
>I have a column that can move depending on the grid content. I know its name, I need to be able to determine its location so I can get its value (I know the row index already)




Loader.
Live Chat Icon For mobile
Up arrow icon