eramgarden
Contributor
- Joined
- Mar 8, 2004
- Messages
- 579
I have a datagrid, I removed the "edit" button, and "edititemtemplate" because I wanted users to bypass "edit" and go directly to "update"/"cancel" buttons...
I added a LinkButton for "update" ...Everything is fine so far..
Now, when the user clicks "Update", I want to get the datagrid's values and update BUT ..
The linkButton does NOT have "e As DataGridCommandEventArg". It looks like this:
So, I cant have, for example: dim sShort= CType(e.Item.FindControl("short_desc"), TextBox).Text
I tried this : Dim SShort = dgIncid.FindControl("txtDesc") but i dont get the value...
So, how can I get to the datagrid's columns if I'm using a LinkButton??
I added a LinkButton for "update" ...Everything is fine so far..
Now, when the user clicks "Update", I want to get the datagrid's values and update BUT ..
The linkButton does NOT have "e As DataGridCommandEventArg". It looks like this:
Code:
Private Sub lbUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lbUpdate.Click
So, I cant have, for example: dim sShort= CType(e.Item.FindControl("short_desc"), TextBox).Text
I tried this : Dim SShort = dgIncid.FindControl("txtDesc") but i dont get the value...
So, how can I get to the datagrid's columns if I'm using a LinkButton??