Empty The radgrid and dont display any columns

2 posts, 0 answers
  1. Vvamc
    Vvamc avatar
    22 posts
    Member since:
    Jan 2014

    Posted 22 Sep 2014 Link to this post


    I have a  radgrid and the the radgrid is set to autogenerated columns =  true. Once the radcombo box is changed the grid should have null data and the columns are added based on listbox source to destination selection. Though i Make the Datasource = null i still see the column names. Do i have the ability to make the total grid empty and with no columns and rows . 

    Thanks in advance,

  2. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 22 Sep 2014 in reply to Vvamc Link to this post


    I am not able to reproduce this issue than also can you please try with below code snippet.

    protected void Button1_Click(object sender, EventArgs e) // RadComboBox selection index changed event
        DataTable dt = new DataTable();
        dt.Columns.Add(" ",typeof(string));
        RadGrid1.DataSource = dt;

    Let me know if any concern.

    Jayesh Goyani
  3. DevCraft R3 2016 release webinar banner
Back to Top