
August 16th, 2001, 08:36 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,578
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
How to delete the seleted items from the datagrid in asp.net
Originally posted by : Prashant (prash_shenoy@yahoo.com)Hi all, I am dynamically creating the check boxes in datagrid. while displaying I am binding some of the fields using bindcolumn attribute of the datagrid. The Problem which i am facing is that I am not able to iterate through all the fields in the datagrid. Which property should i use to iterate through all the fields in the datagrid. I want to delete multiple items from the datagrid. How to check this in the client/Server what all i have selected to delete. Sample page*********** gridtest.aspx page *************** DIM chk1 as checkboxdim TxtBox as textbox for i=0 to datagrid1.items.count -1 chk1 = datagraid1.item(i).findcontrol("checkbox1") ************** 'This is not checking whether the chaeckbox is checked or nor ************** if chk1.checked = true then *************** ' how to get the value of second and third ' column in the grid ***************** next ' here i have writtenm the code for binding the column and used the cjheck box
|