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

Empty RadGrid

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patrick Wilson
Top achievements
Rank 1
Patrick Wilson asked on 05 Oct 2009, 04:51 PM
Disclaimer: New to Telerik

I would like some help on creating an empty RadGrid into which i would like have the end-user input data. The columns in the grid would have a combobox so that they can select the appropriate data for each column.

Any help would be appreciated.
Pwilson

1 Answer, 1 is accepted

Sort by
0
Accepted
Schlurk
Top achievements
Rank 2
answered on 06 Oct 2009, 03:33 PM
You could start off by defining the Grid like this:

 
<telerik:RadGrid ID="RadGrid1" runat="server"></telerik:RadGrid> 

And then on the page load:
protected void Page_Load(object o, EventArgs e)  
{  
    if(!isPostBack) 
    { 
        RadGrid1.DataSource = new int[] { }; 
    } 
}  

This will load an empty RadGrid on your initial page load. Then from there I would say look into these documentation articles as well as any articles you find in there that can be related to this.

Programmatic creation
Changing structure on post-back





Tags
Grid
Asked by
Patrick Wilson
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or