Getting Selected Column Name On DataGrid (argent)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I need to get selected column name or index when user select one
on datagrid.
 
Eran,

This you can try, and than do the rest yourself because what you did not
tell was, if you want a column number of the datagrid or from a kind of
datasource and as well not if you use datagridstyles. By the way I have
assumed that it is for a windowforms datagrid.

\\\
Private Sub DataGrid1_CurrentCellChanged(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles DataGrid2.CurrentCellChanged
Dim GridColumn As Integer = _
DirectCast(sender, DataGrid).CurrentCell.ColumnNumber
End Sub
///

I hope that this helps?

Cor
 

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