Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hellooo...
i am using asp.net. ihad three column in my gridview. Rollno, Stu_name and Attendence. I bind it with sql server. so data in ist and second column will come directly from database. but in third column , i am using dropdown list
(items are- P, L, A) , using item template. so now when i will select any option out of three, i want that data will be save in database in third column.
plz dont connect gridview directly to database.... connect it by writing whole code into cs file... plz..tell me soon.
Posted

1 solution

Hi
You can find the control using
SQL
If (Not gv.Rows(e.RowIndex).FindControl("ddlOpArea") Is Nothing) Then
              oparea = CType(gv.Rows(e.RowIndex).FindControl("ddlOpArea"), DropDownList).SelectedItem.Text.Trim



Then pass the value into DB.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900