Reputation: 124
I write interface in asp.net. I'am use <asp:GridView>
component and it showes nothing. I tried to add it by code and by designer, but when i debug it, the div, that should contain GV's code, is empty (I saw that by Google Chrome's Developer's tools).
I'm tried to use this
<EmptyDataTemplate>ITemplate</EmptyDataTemplate>
,
but it gives same result. Maybe i don't understand something important.
Upvotes: 1
Views: 76
Reputation: 3681
You need to bind your GridView
with null
.
GridView.DataSource = null;
GridView.DataBind();
Upvotes: 2