Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > (TextBox) (e.Item.Cells[2].Controls[0]) - Cast Invalid - Cannot update.

Reply
Thread Tools

(TextBox) (e.Item.Cells[2].Controls[0]) - Cast Invalid - Cannot update.

 
 
Ravichandran Mahalingam
Guest
Posts: n/a
 
      01-12-2004
Dear Readers,

Based on the information downloaded from the internet and the msdn
help shown below,
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolsdatagridclassupdatecomm andtopic.asp>

wanted to get the information from the grid after the user has edited
to the textbox variable as shown below:

TextBox myCurrentTextBox ;

myCurrentTextBox = (TextBox) (e.Item.Cells[2].Controls[0]);
strNewSeqNum = myCurrentTextBox.Text;

fails while setting the myCurrentTextBox;

I am trying to edit the contents of the grid and all these are a part
of the Grid_Update(,) function.

any help in this regard will be appreciated.

thanks and regards
Ravi.
 
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
Is the result of valid dynamic cast always equal to the result ofcorrespondent static cast? Pavel C++ 7 09-18-2010 11:35 PM
error C2440: 'return' : cannot convert from 'const char *' to 'const unsigned short *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Abhijit Bhadra C++ 2 12-01-2004 04:43 PM
malloc - to cast or not to cast, that is the question... EvilRix C Programming 8 02-14-2004 12:08 PM
to cast or not to cast malloc ? MSG C Programming 38 02-10-2004 03:13 PM
Invalid cast in GetEnumerator() TPS ASP .Net 2 08-15-2003 10:43 PM



Advertisments