CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

YesSoftware Forums -> CodeCharge Studio -> .NET

 Using Recordcount for grid count

Print topic Send  topic

Author Message

Posts: 30
Posted: 04/05/2004, 9:07 PM

I created a grid - pmthistory and has a label L1count. I want to store the count of rows found. I am using the following per the example in the BeforeShow of the label in the Grid

//Control L1count Event BeforeShow. Action Retrieve Value for Control @134-A082F33A
pmthistoryL1count.Text =(pmthistory.Recordset.RecordCount).ToString();

//End Control L1count Event BeforeShow. Action Retrieve Value for Control

I am getting compile error...Will appreciate any pointers..
thank you..
View profile  Send private message

Posts: 5971
Posted: 04/05/2004, 11:53 PM

Looks like you're trying to use ASP-type syntax. If using C# it should be:
pmthistoryL1count.Text = ((pmthistoryItem[])pmthistoryRepeater.DataSource).Length.ToString();
Peter R.
YesSoftware Forums Moderator
For product support please visit
View profile  Send private message

Add new topic Subscribe to topic   

These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.