|
-
Jul 12th, 2005, 09:45 AM
#1
Thread Starter
New Member
[RESOLVED] Textbox in datagrid not returning values
When in edit mode my datagrid displays textboxes in several columns of the editable row. In my update command procedure the text property of the textboxes all appear as "" even though data has been entered. Please could anyone suggest what is causing this. I don't believe that this is an issue with how I reference the text box because doing a watch on e.Item.Cells shows the value in all the textboxes as "", and I have succesfully used datagrids before however below is a code snippet just in case I'm losing the plot....
Code snippet:
Private Sub dtgDataEntry_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dtgDataEntry.UpdateCommand
Dim txtWork As New System.Web.UI.WebControls.TextBox
txtWork = CType(e.Item.Cells(1).Controls(1), TextBox)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|