TextChanged within Datagrid

  • Thread starter Thread starter anna
  • Start date Start date
A

anna

I posted a question earlier asking whether you can assign information
to a textbox within a datagrid on PageLoad? If so, how?
Have another question, is it possible to have a TEXTCHANGED method
for a textbox within the datagrid. Once again, how?

I am trying to figure out whether I should continue on searching on
how to do thing in a datagrid or just switch to something else. I
can't seem to find solutions for those quations.

THANKS
 
Anna
I'm having to infer a few things from your request, but I believe the solution will be found using Inheritance. You need to create a CustomTextBox that has a public event TextChanged that is invoked when appropriate. Then add the custom textbox to the datagrid. Using the ItemDataBound event of the datagrid you can then dynamically assign a handler for this event
Since you refer to "pageLoad" rather than "formLoad" I am guessing you are trying to do this in ASP.NET, this presents the seperate problem of roundtrips to the server on every textchanged event. So you might want to rethink your strategy a bit..

HTH

Cos Callis, MCAD
 
Back
Top