Adding row from datagrid to another datagrid in asp.net using C#.Net
-
Hi all, I have one datagrid, i am binding the datagrid with records from DB.My need is if i click one of the binded record that particular record should be added to the another datagrid. It should be on serverside only. Can any body give idea to do this. Thanks in advance, eswar.
-
Hi all, I have one datagrid, i am binding the datagrid with records from DB.My need is if i click one of the binded record that particular record should be added to the another datagrid. It should be on serverside only. Can any body give idea to do this. Thanks in advance, eswar.
Handle datagrid's
ItemCommand
event. Caste datagrid'sDataSource
to aDataTable
instance if you used it for binding. Find the row index from event handler parameters, fetch the row fromDataTable
using this index. Create new DataTable instance and add theDataRow
(You need to clone it) to there. Bind the second grid with this new datatable.All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions