Click here to Skip to main content
14,875,113 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

int cn = radGridView2.RowCount;
label6.Text = cn.ToString();
   
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.
   

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