This is a migrated thread and some comments may be shown as answers.

how to get the column name of current cell in the radgridview

4 Answers 965 Views
GridView
This is a migrated thread and some comments may be shown as answers.
loraine
Top achievements
Rank 1
loraine asked on 17 Apr 2011, 10:22 AM
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:

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



4 Answers, 1 is accepted

Sort by
0
Don
Top achievements
Rank 1
answered on 18 Apr 2011, 10:22 PM
I would try RadGridView1.CurrentColumn.Name and see if that works before trying RadGridView1.CurrentColumn.Name.ToString().
0
Alexander
Telerik team
answered on 20 Apr 2011, 11:48 AM
Hello Loraine,

You can get the Name property of the CurrentCell's ColumnInfo:
this.radGridView1.CurrentCell.ColumnInfo.Name

Please write back if I can assist you further.

Best regards,
Alexander
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
sujeeth
Top achievements
Rank 1
answered on 02 Nov 2015, 02:30 PM

I cant able to find Currentcell.column.Name property in radgrid.

 radGrid1.CurrentCell.ColumnInfo.Name

 

0
Stefan
Telerik team
answered on 02 Nov 2015, 03:34 PM
Hello Sujeeth,

This forum concerns Telerik UI for while your question seems to be related to Telerik UI for ASP.NET AJAX. If so, please address your question in the appropriate forum to get response: http://www.telerik.com/forums/aspnet-ajax.

Regards,
Stefan
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
loraine
Top achievements
Rank 1
Answers by
Don
Top achievements
Rank 1
Alexander
Telerik team
sujeeth
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or