In Case of you want to fill combobox along with grid fill function
write something like this at grid rowdatabound
Dim ddl As DropDownList = CType(e.Row.FindControl("ddlParameter"), DropDownList)
sql = "Select any data from table"
ddl.DataSource = fill data list
ddl.DataBind()
In case you just want to access values of drop down list in a already filled grid
for i=0 to grid1.rows.count
Dim ddl As DropDownList = CType(e.Row.FindControl("ddlParameter"), DropDownList)
label1.text = ddl.selecteditem.text 'something like this
next
or
Dim ddl As DropDownList =CType( grid1.selectedrow.FindControl("ddlParameter"), DropDownList)
label1.text=ddl.text
hope this will help
Ashish
Rock_Monu, if this helps please login to Mark As Answer. | Alert Moderator