This is a migrated thread and some comments may be shown as answers.

Ugly message for empty RadGridView

3 Answers 230 Views
GridView
This is a migrated thread and some comments may be shown as answers.
gmendez
Top achievements
Rank 1
gmendez asked on 11 Feb 2009, 05:52 PM
Hello,

I noticed that when a RadGridView is empty, in other words, when it has no data bound to it, the following message is displayed:

"No Data to display".

I think that the end user would see this as a system error. Besides, I work for spanish speakers end users.
If not possible to disable this message, ┬┐Can it be translated, at least?

Thanks a lot.

Gonzalo

3 Answers, 1 is accepted

Sort by
0
Fabien
Top achievements
Rank 2
answered on 12 Feb 2009, 08:33 AM
On  properties of gridview, you should set ShowNoDataText = False;

Best regards,

Fabien
0
gmendez
Top achievements
Rank 1
answered on 12 Feb 2009, 11:56 AM
Hello Fabien,

This is true for design time only.
Even ShowNoDataText property is set to False, at runtime, the 'No Data to display" message remains.
Best regards,

Gonzalo
0
Accepted
Deyan
Telerik team
answered on 13 Feb 2009, 12:59 PM
Hi Gonzalo,

Thanks for your question.

You can either leave the ShowNoDataText property set to true in the designer and set it to false at runtime, or you can use the following statement:

this.radGridView1.GridElement.Text = String.Empty; 

I hope this will help.

Kind regards,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
gmendez
Top achievements
Rank 1
Answers by
Fabien
Top achievements
Rank 2
gmendez
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or