LLBLGenProDataSource2 - DataBind ?

Posts   
 
    
ianvink
User
Posts: 394
Joined: 15-Dec-2006
# Posted on: 06-Feb-2008 18:38:10   

VS 2008, .NET 3.5 C#, Adapter

LLBLGenProDataSource2 ASP.NET Newbie question

I have a simple test page where a grid (DevExpress) is nicely bound to a LLBLGenProDataSource2 where the Live Persistance is False. Updates etc all work well in an AJAX UpdatePanel.

On a post pack I want to make the grid refresh. I noticed a LLBLGenProDataSource2.DataBind() and there is a Grid.DataBind()

I tried calling both DataBind()s, but the PerformSelect() event doesn't fire. It does fire when the page first loads and works well.

Ian

ianvink
User
Posts: 394
Joined: 15-Dec-2006
# Posted on: 06-Feb-2008 19:08:17   

Found it:

I have to Set Refetch to true.

binderEntry.Refetch = true;
gvMain.DataBind();