QueueHammer
QueueHammer

Reputation: 10824

OnTextChanged even not working as expected in GridView

I have a textbox in a gridview. The column template for the gridview binds data to the textbox. The original value will be called X. If I change the text in the textbox inside the grid view to Y the onTextChanged event will fire when I press a button. After I have changed the text to Y, and the event has fired, the event will continue to fire if each time i click the button. If I change the text to the orignal value, X, the onTextChanged event stops firing.

There are textboxes outside of the gridView. They all call onTextChanged as expected; When text is changed from what was there before.

How can I make the onTextChanged act like its expected instead of an onTextIsNotOrignalValue?

Upvotes: 1

Views: 1534

Answers (2)

Cee Dee
Cee Dee

Reputation: 26

Have you tried to enable ViewState for the text box on the grid view? I am not sure if you have to enable Viewstate on the gridview itself.

Upvotes: 1

Marco Hurtado
Marco Hurtado

Reputation: 534

Did you set AutoPostBack of Textbox to True?

Upvotes: 0

Related Questions