Datagrid Edit
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I have a page which allows the user to display all records, or search for a particular one. There is an edit column in the datagrid. There is a method for display all records; ReadRecords, and one for search; ReadRecord. I was wondering how I write the event handler so the edit function can be carried out correctly for both datadisplays. At the minute I can only get it working for one of the methods at a time eg. below for the ReadRecord: private void DrugInformationDataGrid_EditCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e) { DrugInformationDataGrid.EditItemIndex = e.Item.ItemIndex; ReadRecord(); } I need it to work with ReadRecords also. Appreciate any help? Rory