Hi! I have two questions. I hope for for your help
1. How i know if the radgrid is empty?
2. How i can change the text to show when the radgrid is empty?
Thanks!!!!!
Briayan
2 Answers, 1 is accepted
0
Accepted
Daniel
Telerik team
answered on 31 May 2009, 06:25 PM
Hello Brygom,
Straight onto your questions:
1) You can check the Items count:
if (RadGrid1.Items.Count == 0)
...
2) The "No records" text could be modified by using the NoMasterRecordsText and NoDetailRecordsText properties of the GridTableView. You can even define your own "no records" template:
privatevoid Page_Load(object sender, EventArgs e)
{
RadGrid1.MasterTableView.NoMasterRecordsText = "No items!";