Understanding GridView Databind
Understanding GridView Databind
Understanding GridView Databind
Understanding GridView Databind
Understanding GridView Databind
Understanding GridView Databind Understanding GridView Databind Understanding GridView Databind Understanding GridView Databind Understanding GridView Databind Understanding GridView Databind Understanding GridView Databind Understanding GridView Databind
Understanding GridView Databind Understanding GridView Databind
Understanding GridView Databind
Go Back  Xtreme Visual Basic Talk > > > Understanding GridView Databind


Reply
 
Thread Tools Display Modes
  #1  
Old 10-09-2013, 02:49 PM
holtzy holtzy is offline
Senior Contributor
 
Join Date: Jul 2002
Location: USA
Posts: 1,054
Talking Understanding GridView Databind


I am using a gridview inside of an ajax updatepanel. I am not loading data into the datasource on page load. Data is added to the grid using various methods triggered by the user (i.e. the user types in some fields and clicks a button, then a new row is added into the grid). Obviously to show the new row in the grid I must databind each time.

The problem I have run into is that I have a template field inside the grid that is a textbox. I have an event set to fire using the OnTextChanged property
Code:
AutoPostBack="true" OnTextChanged="txt_TextChanged"
This event works, but never the first time. In fact, the page never even posts back (i.e. the page load event is never fired).

Do I have to manually add event handlers after each grid databind?
__________________
God is good!!!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Understanding GridView Databind
Understanding GridView Databind
Understanding GridView Databind Understanding GridView Databind
Understanding GridView Databind
Understanding GridView Databind
Understanding GridView Databind Understanding GridView Databind Understanding GridView Databind Understanding GridView Databind Understanding GridView Databind Understanding GridView Databind Understanding GridView Databind
Understanding GridView Databind
Understanding GridView Databind
 
Understanding GridView Databind
Understanding GridView Databind
 
-->