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
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
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
Next