Click here to Skip to main content
15,913,669 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys

Have a gridview here, am using this proparty "ShowHeaderWhenEmpty='Empty'" to show when my gridview is empty...so is there a proparty to make that "Empty" to be in the center of the gridview because now it shows on the left side of my gridview??
Posted

1 solution

The GridView.ShowHeaderWhenEmpty Property[^] should be set to "True" (or "False") and when used the column header are displayed when the column is empty.

To display text in the GridView when it is empty either use GridView.EmptyDataText Property [^] or GridView.EmptyDataTemplate Property [^].

Use the GridView.EmptyDataRowStyle Property[^] to set the appearance of the empty data row.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900