View Single Post
  #4 (permalink)  
Old June 12th, 2007, 04:05 PM
juice2004 juice2004 is offline
Registered User
Join Date: Aug 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Thank you - this is almost exactly what I needed. One slight mod for what I needed and that was the datakeyname for the row where the dropdownlist was. I got that with this code:

Protected Sub DdlFy_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)

Dim fyDropDown As DropDownList = sender
Dim row As GridViewRow = DirectCast(fyDropDown.NamingContainer, GridViewRow)
Dim projectId As Integer = GridView1.DataKeys(row.RowIndex).Item("ProjectId")

End Sub
Reply With Quote