how to centervertically the emptydatatext?

P

phil

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top