I have two Datagridview which is bind to a datasource, I want to add a particular row from first gridview to another gridview, when click on my Checked Box field.
My Gridview1 Column Name
ID(Autogenrate) Name Class
Gridview2 Column Name
ID Name Class Address CheckedBoxColumn
Saqib MalickPosted Jul 19, 2010, 2:27 AM
Ajay GautamPosted Jul 10, 2010, 12:28 AM
I implemented same type of functionality.
try this
Take one Isvalid parameter in aspx with checkbox and on server side make it true or false then populate that column in your datasource.
The values which are true bind those rows for second gridview and which are false bind those for first gridview depends on your codition. You can easliy divide the datasource by 2 datatables based on Isvalid value then bind both grid
let me know, i can send you my code for reference.
Amit ChoudharyPosted Jul 9, 2010, 8:18 AM
there are two ways to do it.. either user javascript or you can do it from server side code...
attach your files here i can help you..