Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Telerik controls.And i want to display total number of rows of radGridview.If there is 5 records inside the RadGridview then i want to display count 5 on label.........
Posted

just check the total count of datasource you provided to your Radgridview like this...

if ADO.NET with Data Table then like this..

suppose Data Table is DT then

C#
Dt.rows.count


or dataset then

suppose dataset is ds then

C#
Ds.Table[0].rows.count


and suppose you are binding any list to your Rad Grid then

suppose list is ls then

C#
ls.count


you can get total record count from your datasouce to display in your label.
 
Share this answer
 
int cn = radGridView2.RowCount;
label6.Text = cn.ToString();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900