E
Ed Dror
Hi there,
I'm using Visual studio 2005 pro and I want to pass parameter from datagrid selected cell to textbox
I have Select button in my datagrid
I wrote this
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
Try
If e.Row.RowType = DataControlRowType.DataRow Then
Me.txtSubTypeID.Text = e.Row.Cells(1).Text
Me.txtBSP.Text = e.Row.Cells(8).Text
Me.txtALC_ID.Text = e.Row.Cells(3).Text
End If
Catch ex As Exception
ErrorMessage.Text = ex.Message.ToString
End Try
End Sub
But it always it show the last record nothing change when I'm using the SELECT button?
I tryied all other methods but e.Row working only with RowDataBound
How do I do that?
Thanks,
Ed Dror
(e-mail address removed)
I'm using Visual studio 2005 pro and I want to pass parameter from datagrid selected cell to textbox
I have Select button in my datagrid
I wrote this
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound
Try
If e.Row.RowType = DataControlRowType.DataRow Then
Me.txtSubTypeID.Text = e.Row.Cells(1).Text
Me.txtBSP.Text = e.Row.Cells(8).Text
Me.txtALC_ID.Text = e.Row.Cells(3).Text
End If
Catch ex As Exception
ErrorMessage.Text = ex.Message.ToString
End Try
End Sub
But it always it show the last record nothing change when I'm using the SELECT button?
I tryied all other methods but e.Row working only with RowDataBound
How do I do that?
Thanks,
Ed Dror
(e-mail address removed)