From Gridview onrowdatabound event, you have to write the code for finding the dropdownlist and bind the records from the dataset which you have
For Each rw As GridViewRow In grid.Rows
Dim drp As New DropDownList drp = DirectCast(rw.FindControl("drp1"), DropDownList) Dim ds As New DataSet drp.DataSource = ds.Tables(0).DefaultView drp.DataTextField = "Name" drp.DataValueField = "ID" drp.DataBind()
Next
Liked By
Write Answer
GridView :- How to bind data into child GridView
Join MindStick Community
You have need login or register for voting of answers or question.
Samuel Fernandes
11-Feb-2015From Gridview onrowdatabound event, you have to write the code for finding the dropdownlist and bind the records from the dataset which you have
For Each rw As GridViewRow In grid.Rows
Next