CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> .NET

 Using Recordcount for grid count

Print topic Send  topic

Author Message
kabila

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..
-s
View profile  Send private message
peterr


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 http://support.yessoftware.com
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 http://support.yessoftware.com.

Web Database

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

Home   |    Search   |    Members   |    Register   |    Login


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