I am attempting to use a BindingList as my datasource as a temporary holding source until I put the data into my SQL database. Displaying the data works just fine, the problem I am having is actually adding/inserting data. Here is the flow:
1. I create 10 records on page load, they display fine, the DataSource is assigned in the NeedDataSource event.
2. Using an ASP.NET button, I invoke the RadGrid.MasterTableView.InsertItem() function which loads the default insert template.
3. After putting in the data and clicking the Insert link, the InsertCommand event is fired and I create a new record and add it to my BindingList and call RadGrid.Rebind().
4. The data gets added but the insert template does not go away and if I click on cancel to get it to go away, the data is no longer in the grid.
How can I get the Insert Template to close after I insert an item using the BindingList?
Seth
1. I create 10 records on page load, they display fine, the DataSource is assigned in the NeedDataSource event.
2. Using an ASP.NET button, I invoke the RadGrid.MasterTableView.InsertItem() function which loads the default insert template.
3. After putting in the data and clicking the Insert link, the InsertCommand event is fired and I create a new record and add it to my BindingList and call RadGrid.Rebind().
4. The data gets added but the insert template does not go away and if I click on cancel to get it to go away, the data is no longer in the grid.
How can I get the Insert Template to close after I insert an item using the BindingList?
Seth