| Posted: 04/24/2008, 2:35 AM |
|
ASP .NET 2.0 (C#) - CCS 3.2
I have a grid with a dynamic select and when using the search form the total number of records is not accurate anymore. I am trying to access the code bellow in the AfterExecuteSelect of myGrid but it gives me the error from the quote.
System.Web.UI.WebControls.Literal myPagemyGrid_TotalRecords = new System.Web.UI.WebControls.Literal();
myPagemyGrid_TotalRecords.Text = myGridData.RecordCount.ToString();
Quote :CS0103: The name 'myGridData' does not exist in the current context
Any other ideas how to get the number of records correctly?
_________________
Able was I ere I saw Elba |