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

don't want new Insert row in Grid after inserting one new data in grid

1 Answer 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jai
Top achievements
Rank 1
Jai asked on 12 Jul 2011, 09:47 AM
Hi,

I have one grid and i have set CommandItemSettings-AddNewRecordText on this grid. When clicks on this Add New i am getting one insert row in Grid to enter new data then to Insert data in DB i am doing my functionality on RadGrid_ItemCommand by checking e.CommandName == RadGrid.PerformInsertCommandName. Upto here everything working fine. Data is inserting in DB and all. but just after that a new row shows in grid to insert new data and i don't want.

How to do that i will not get this new insert row in grid just after inserting data ? I want user will click again the Add new on Grid header to get this new insert row in grid to insert new data. 

Thanks,
--Jai

1 Answer, 1 is accepted

Sort by
0
Jai
Top achievements
Rank 1
answered on 13 Jul 2011, 07:42 AM
Hi have fixed this problem by set the e.Item.OwnerTableView.AllowAutomaticInserts = false;
Tags
Grid
Asked by
Jai
Top achievements
Rank 1
Answers by
Jai
Top achievements
Rank 1
Share this question
or