Click here to Skip to main content
14,920,001 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.........

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


or dataset then

suppose dataset is ds then


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

suppose list is ls then


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

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