• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 536
  • Last Modified:

Column span all columns when Gridview Data is empty

Hello Experts,

I was trying to show gridview Headers , when there is no data, but I cannot column span all columns and remove the rowstyle and show the text "No Data Present".

Sample gridview:

ID         NAME
--        ------------

     NO DATA PRESENT


Something like above.
0
ASPDEV
Asked:
ASPDEV
  • 2
  • 2
1 Solution
 
guru_samiCommented:
With 4.0 you can set ShowHeaderWhenEmpty="True" and have EmptyDataTemplate to have your text.
0
 
ASPDEVAuthor Commented:
Sorry, It was ASP.NET 3.5.
0
 
guru_samiCommented:
Then there isn't an built-in way but weird workarounds.
Some of them listed here
0
 
ASPDEVAuthor Commented:
Thanks.
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now