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