Finding the Column Name

  • Thread starter Thread starter Thomas Beyerlein
  • Start date Start date
T

Thomas Beyerlein

Hello, I am looking it for a way of getting the column name, from a
datagrid when the user clicks on one of the cells. I can get the value
and the row Number and column Number, but can not seem to find the event
that will give me the column name that was selected.

Thanks
Tom
 
Thomas Beyerlein said:
Hello, I am looking it for a way of getting the column name, from a
datagrid when the user clicks on one of the cells. I can get the value
and the row Number and column Number, but can not seem to find the event
that will give me the column name that was selected.

If your data source is a 'DataTable', you can determine the name using
'MyDataTable.Columns(i).ColumnName'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top