Hello
Ref: http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=11477
I have got a gridview, with a design-time LLBL data source. I have a command button that fires an event that creates records in the table that provides the data for my Gridview.
I am doing gvOptions.DataBind() to get my gridview to refresh the data, but it seems to be cacheing the data. I have tried disabling the LivePersistence, but when I cange tabs in my tabstrip, the datagrid just loses its data.
Does anyone have any ideas?
Many thanks
Darren
<asp:GridView ID="gvOptions" runat="server" AutoGenerateColumns="False"
CellPadding="4" ForeColor="#333333" GridLines="Horizontal" OnRowEditing="gvOptions_RowEditing"
OnRowUpdated="gvOptions_RowUpdated" OnRowUpdating="gvOptions_RowUpdating" DataKeyNames="CombinationId" DataSourceID="dsLLBLOne" EmptyDataText="--">
<FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<Columns>
<!-- Template Fields Here -->
</Columns>
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
<PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>
<llblgenpro:LLBLGenProDataSource ID="dsLLBLOne" runat="server" DataContainerType="EntityCollection"
EntityCollectionTypeName="RedStarEnergy.DAL.CollectionClasses.ProductTypeOptionAttributeCombinationCollection, RedStarEnergy.DAL" AllowDuplicates="False">
</llblgenpro:LLBLGenProDataSource>