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

Ho do I: Ensure that an Insert row is always displayed for a grid

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
drinell
Top achievements
Rank 1
drinell asked on 15 Oct 2008, 07:00 PM
I am using the rad grid to add/remove records to/from a table. I need to ensure that an Insert Row (with the insert controls, three dropdowns and a date picker) and the Header are always displayed regardless of whether the underlying table contains any records or not. I am sure this is something really obvious, but havent been able to find anything so far.
Any and all help is appreciated.
Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Oct 2008, 03:42 AM
Hello Sreejath,

You can add the following line of code to display an insert row on the  grid always.
cs:
 protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
        RadGrid1.MasterTableView.IsItemInserted = true
        RadGrid1.Rebind(); 
    } 

Thanks
Princy.
Tags
Grid
Asked by
drinell
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or