Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > how to centervertically the emptydatatext?

Reply
Thread Tools

how to centervertically the emptydatatext?

 
 
phil
Guest
Posts: n/a
 
      06-01-2006
Hi,

The gridview contains the EmptyDataTex element, but how can i center it
vertically?

I tried all possible properties like here:
<asp:GridView ID="GridView1" runat="server"
DataSourceID="AccessDataSource1"
.........
EmptyDataText="No records" HorizontalAlign="Center"
EmptyDataRowStyle-VerticalAlign="Middle">

<emptydatarowstyle backcolor="LightBlue"
forecolor="Red" HorizontalAlign="Right" VerticalAlign="Middle"/>
.....

This centers only horizontally and the text is rendered with the colors.
When i remove [HorizontalAlign="Right" VerticalAlign="Middle] from the
<emptydatarowstyle> tag, i get just the same, so what's the use of those
options?
The option [EmptyDataRowStyle-VerticalAlign="Middle] doesn't work either.

Any hints?
Thanks
Phil


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM



Advertisments