Hi,
I have a gridview which display the EmpName, EmpPhone, Email, Address columns on the grid and a button on the form.
Assume that they are 100 rows in the grid. Out of these 100 records, user has selected the 20 records and clicks on the button all selected employees Address column data should be copied in to windows clipboard(only Address column data)usinf javascript. We are using ASP.NET3.5.
Thnkas!
|
| Author: greeny_1984 03 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
Hi,
Inorder to get data from gridview you can try like this
for(int i=0;i<=gdview.rows.count-1;i++) { checkbox chk=new checkbox(); chk=(checkbox)gdview.rows[i].findcontrol("chkid"); if(chk.checked) { //you can collect all the selected columns data here using array or datatable }
}
Regards, Greeny_1984
Rate this Response[Excellent/Good/Poor] FRESHERS check this link Need help from me join here
|