Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: DataGrid sorting and paging


Message #1 by Terrence Joubert <Terrence@v...> on Mon, 3 Jun 2002 10:38:28 +0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C20AC9.46B1E180
Content-Type: text/plain

Hi,
 
I am trying to develop a custom data grid control as a web user control that
has built-in sorting and paging functionality.
This control is inheriting from System.Web.UI.WebControls.DataGrid and it
has a member m_DataTable which is of type System.Data.DataTable.
 
When the page loads, data is retrieved and m_DataTable is populated.
However, it does not seem to be maintaining state because I get errors
saying that no columns exists in the m_DataTable after the first post back
of the web form. Hence, neither the sorting nor the paging works.
 
Does anyone have an idea how I can force m_DataTable to maintain state?
 
Thanks
Terrence 
 


  Return to Index