Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
ASP .Net Web Controls
Datagrid DataGridCommandEventArgs trouble
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Jeffrey Tan[MSFT], post: 4289446"] Hi Jim, Thanks for posting in this group. Based on my understanding, when you click update button in the "edit, cancel update button column", UpdateCommand event fires, but the Dim tbX As TextBox = CType(e.Item.Cells(5).Controls(0), TextBox) will get the original Text of that editbox. I think this is a strange behavior, and I can not reproduce out. In my project, I can succeed get the new text value. To use "edit, cancel update button column", you should set MyDataGrid.EditItemIndex = e.Item.ItemIndex in Edit event.(Also bind the grid). In Cancel event, you should set MyDataGrid.EditItemIndex = -1, and bind the datagrid again. The link below shows you a little sample about this: [URL]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/[/URL] frlrfsystemwebuiwebcontrolsdatagridclassupdatecommandtopic.asp Best regards, Jeffrey Tan Microsoft Online Partner Support Get Secure! - [URL="http://www.microsoft.com/security"]www.microsoft.com/security[/URL] This posting is provided "as is" with no warranties and confers no rights. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
ASP .Net Web Controls
Datagrid DataGridCommandEventArgs trouble
Top