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

5 posts, 0 answers
  1. loraine
    loraine avatar
    30 posts
    Member since:
    Apr 2011

    Posted 17 Apr 2011 Link to this post

    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();



  2. Don
    Don avatar
    60 posts
    Member since:
    Aug 2010

    Posted 18 Apr 2011 Link to this post

    I would try RadGridView1.CurrentColumn.Name and see if that works before trying RadGridView1.CurrentColumn.Name.ToString().
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Alexander
    Admin
    Alexander avatar
    306 posts

    Posted 20 Apr 2011 Link to this post

    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
  5. sujeeth
    sujeeth avatar
    1 posts
    Member since:
    Oct 2015

    Posted 02 Nov 2015 in reply to Alexander Link to this post

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

     radGrid1.CurrentCell.ColumnInfo.Name

     

  6. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 02 Nov 2015 Link to this post

    Hello Sujeeth,

    This forum concerns Telerik UI for WinForms, 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 adequate 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
Back to Top
UI for WinForms is Visual Studio 2017 Ready