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

  • Thread starter Ravichandran Mahalingam
  • Start date
R

Ravichandran Mahalingam

Dear Readers,

Based on the information downloaded from the internet and the msdn
help shown below,
http://msdn.microsoft.com/library/d...ebcontrolsdatagridclassupdatecommandtopic.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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top