Click here to Skip to main content
15,894,180 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi! how can i get the column name of the current cell in the radgridview?
RadGridView1 is the name of my datagrid.
these doesn't work:

MIDL
RadGridView1.CurrentCell.Column.ToString();
RadGridView1.CurrentCellInfo.Column.ToString();
RadGridView1.CurrentColumn.ToString();
Posted

RadGridView1.CurrentCell.Column.Index;

This should give you the currentcells INDEX, if not you should be looking for a property that gives you a column index. From that you go to the radgriview.colums[index] to get the column.

Node this is an assumption as I do not use that telerik control but it seems logical.
 
Share this answer
 
C++
RadGridView1.CurrentCell.Column.UniqueName
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900