Get WebGridView row from dropdownlist selectedindexchanged
New Discussionokay so in a typical gridview (Microsoft ASP.net one) you can put a drop down list in a template column, then in the selectedindexchanged event you can type this
Protected Sub ddl_PackWeek_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim gd_data1 As New DataAccessLayer()
'get dropdownlist object
Dim Myddl As DropDownList = CType(sender, DropDownList)
'use naming container property to get the row in which the control resides
Dim MyRow As GridViewRow = CType(Myddl.NamingContainer, GridViewRow)
'database call
gd_data1.updatePackWeek(MyRow.Cells(0).Text, Myddl.SelectedItem.Value)
Me.gv_receiving.DataBind()
End Sub
How do you do this in a web grid view?
in so many words, how do I access info from the ROW of my Drop Down List?
ASP if you need it
</ItemTemplat
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
3 Created On
Feb 12, 2019 Last Post
7 years ago