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

Empty The radgrid and dont display any columns

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vvamc
Top achievements
Rank 1
Vvamc asked on 22 Sep 2014, 02:27 PM
Hi,

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,

Vamsi

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 22 Sep 2014, 05:06 PM
Hi,

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;
    RadGrid1.DataBind();
}

Let me know if any concern.

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Vvamc
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or