Hide Columns In Rad Grid View

5 posts, 0 answers
  1. Brant
    Brant avatar
    18 posts
    Member since:
    Oct 2008

    Posted 06 Jul 2011 Link to this post

    I am new to Telerik Winforms/ASP toolkit.  I have been previously using infragistics.  I am trying to hide a column in a gridview after I send a datatable to the datasource of the grid.  I am trying to find a visible property of the column, but unable to do so.  All the posts I have seen show that you have to loop through the entire grid setting the cell's visible property to false. 

    Is there an easy way to do the following or do I really have to loop through the entire grid?

    RadGridView1.Columns("id").visible = false 
  2. Jack
    Jack avatar
    2333 posts

    Posted 10 Jul 2011 Link to this post

    Hello Brant,

    Thank you for contacting us. You can do this by setting the IsVisible property. Here is a sample:
    RadGridView1.Columns("id").IsVisible = False

    If you have any other questions, do not hesitate to ask.

    Kind regards,
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. Colin
    Colin avatar
    0 posts
    Member since:
    Mar 2014

    Posted 04 Nov 2014 in reply to Jack Link to this post

    Hi Jack,

    I believe this sample should read (WinForms/C#):

    RadGridView1.Columns["id"].IsVisible = false;


  4. abdulmajeed
    abdulmajeed  avatar
    2 posts
    Member since:
    May 2012

    Posted 20 Jan 2016 Link to this post

    RadGridView1.Columns("id").IsVisible = False is deprecated now. Please let me know the alternative?
  5. Dess
    Dess avatar
    1995 posts

    Posted 21 Jan 2016 Link to this post


    Thank you for writing.

    The GridViewColumn.IsVisible property is not marked as deprecated in the latest version Q1 2016. You can find attached a sample project for your reference.

    I hope this information helps. Should you have further questions I would be glad to help.
    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