views:

414

answers:

2

Hi,

I have a gridview control in my C# program and have just added an 'EmptyDataText' control that (as you know) displays a message if no records were found. When I view this page in design, the 'No data found' text is in times new roman and no style. Is it possible to make this text Verdana and also centre the text rather than it being on the left?

Look forward to your reply!

A: 

Solved in the easiest way and don't know why I didn't think of this before as I have this throughout my page! CSS :)

Mike
+1  A: 

Here you have something: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.emptydatatext.aspx

Or you can try this: EmptyDataText = <div style=\"width:100%;color:red;\">No data found </div>" -> and adjusting the style you need.

Ekaterina