EnableInsert doesn't seem to work.

Topics: Developer Forum, User Forum
Aug 23, 2007 at 3:09 PM

Using this great BulkEditGridView - its working great for me, but for some reason I can't get the "Insert new row" functionality to do anything. I set the property to "true", and nothing seems to happen... I'm binding to a SqlDataSource, everything is fairly simple, and yet the EnableInsert doesn't do a thing....

Is this a known bug?

Here's my code:

<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT TOP 10 ID, Title, Creation_Date FROM Mon"
UpdateCommand="Update Mon Set Title = @title where ID = @id" ></asp:SqlDataSource>

<cc1:bulkeditgridview id="BulkEditGridView1" runat="server" datasourceid="SqlDataSource1"
enableinsert="True" insertrowcount="1" savebuttonid="SaveButton"></cc1:bulkeditgridview>
<asp:Button ID="SaveButton" runat="server" Text="Save this 'ere data" />