Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > DataGrid DataGridCommandEventArgs

Reply
Thread Tools

DataGrid DataGridCommandEventArgs

 
 
Jim Whipkey
Guest
Posts: n/a
 
      12-15-2003
I am using an edit, update cancel button in a datagrid.

When the user clicks edit all the columns in that row
appear as textboxes as they should.

The user changes the contents of one of these boxes.

Private Sub DataGrid2_UpdateCommand(ByVal source As
System.Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs )
Handles DataGrid2.UpdateCommand
Dim tbX As TextBox = CType(e.Item.Cells(5).Controls
(0), TextBox)
DataSet11.ATEducation(e.Item.ItemIndex)("School")
= tbX.Text

 
Reply With Quote
 
 
 
 
Jim Whipkey
Guest
Posts: n/a
 
      12-15-2003

>-----Original Message-----
>I am using an edit, update cancel button in a datagrid.
>
>When the user clicks edit all the columns in that row
>appear as textboxes as they should.
>
>The user changes the contents of one of these boxes.
>
> Private Sub DataGrid2_UpdateCommand(ByVal source As
>System.Object, ByVal e As
>System.Web.UI.WebControls.DataGridCommandEventArg s)
>Handles DataGrid2.UpdateCommand
> Dim tbX As TextBox = CType(e.Item.Cells

(5).Controls
>(0), TextBox)
> DataSet11.ATEducation(e.Item.ItemIndex)("School")
>= tbX.Text
>
>.
>


Sorry, this got away from me prematurely. See next posting
for complete description of the problem.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGridCommandEventArgs-generation programatically Zeljko Krizek ASP .Net 0 06-30-2004 09:00 AM
DataGridCommandEventArgs-generation programatically Zeljko Krizek ASP .Net 0 06-30-2004 08:59 AM
Datagrid DataGridCommandEventArgs trouble Jim Whipkey ASP .Net Web Controls 3 12-16-2003 02:47 PM
Call Datagrid Command column outside datagrid Dave ASP .Net 0 11-20-2003 11:11 AM
To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible? Andreas Klemt ASP .Net Datagrid Control 0 10-08-2003 01:19 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57