Reputation: 100288
I'm looking for a way to propagate Item Editing in-row GridView UI onto Item Insertion.
I have item insertion form (row) in the footer, but it's visible only when GridView is not empty. So when it is empty, I can't use it, so have a separate form what looks ugly.
I can use external form for insertion all the time but I like that in-row insertion looks visual and handy.
Can I show footer all the time, or emulate similar in-row style?
Upvotes: 0
Views: 145
Reputation: 3297
You have 2 ways to do it:
1-By simulate the Input Fields inside <EmptyDataTemplate>
<asp:GridView ID="GridView1" runat="server">
<EmptyDataTemplate>
<tr>
<td>
First Cell
</td>
<td>
Second Cell
</td>
<tb>
Third Cell
</tb>
</tr>
</EmptyDataTemplate>
</asp:GridView>
2-Is to create Empty DataSet
and Bind it to the GirdView
.
I prefer the first way because Binding empty DataSet
has some problems.
Upvotes: 1