Reputation: 3
I have a GridView that gets updated by a DropDownList value. Using EmptyDataTemplate, it displays a message that basically says no value is available for the select state. The issue I am running into is, when I first go to the page that message gets pops cause the dropdownlist value is empty, is there away that I can prevent this? I want EmptyDataTemplate to be hidden until a user selects a value from the DropDownList.
Thank you.
Upvotes: 0
Views: 338
Reputation: 4379
You could hide the entire grid and in your selectedIndexChanged event of the dropdownlist bind the grid and set its visibility so that it is displayed.
Upvotes: 2