rhishi20 Posted March 15, 2014 Share Posted March 15, 2014 (edited) please suggest me how i can access Gridview's column value under rowdatabound event. I have tried below Protected Sub GridView2_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView2.RowDataBound Dim asbcdval As String asbcdval = e.Row.Cells(0).Text end sub but this returns "" means nothing. please solve my problem Edited March 15, 2014 by rhishi20 Link to comment Share on other sites More sharing options...
JobPencil Posted March 28, 2014 Share Posted March 28, 2014 You need to use gridView.FindControl("controlName"); to get the control in the row. Example: //Find textbox control TextBox txtname = (TextBox)e.Row.FindControl("txtName"); string Name = txtname.Text; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now