HI and thanks in advance. asp.net using vb, using a codebehind page.
I have a relatively simple gridview bound to an product table that displays great. The problem comes when I choose to edit a row. When I do so, the gridviews' RowDataBound event fires and the values of the text properties of the tablecells in the row evaluate to "" emptystring.
I do notice that if I break within the GridView1_RowDataBound event during a refresh of the page, the values are there. But again, when I hit the "Edit" button in the first column (the CommandField column) . Text properties of the cells resolve to ""
Here is the code for the event, followed by the gridview in the form (inside an updatepanel)
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then ' not a header, footer row.. etc.
Dim cellProductNumber As TableCell = e.Row.Cells(3) ' ProductNumber column
'>>>>> after clicking "update", even though a value displays in the gridview,
' the cellProductNumber.Te
View Complete Post