How to refresh ddl option list when data added

Posts   
 
    
like2175
User
Posts: 83
Joined: 27-Mar-2006
# Posted on: 28-Aug-2007 12:51:01   

I have 2 gridviews, each bound to 2 LLBLGenProDataSource controls using declarations, not code. The itemTemplate of Gridview1 contains a dropdown list of entries that edited by gridview2(the ddl is bound to another LLBLGenProDataSource). If I add an entry to gridview2, what should I do/call (and what event should i call it from) if I want the the new entry to appear in the dropdown list asap.

I know this is a bit vague... but can anyone set me on the right track?

oracle 9.2 self-servicing llblgen 2 visual basic.

Many thanks

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 29-Aug-2007 10:46:57   

I would try the following options:

1- Handle the GridView2's DataSource EntityInserted event, and set ddl's DataSource.Refetch = true;

2- Re-Bind the GridView1 (eg. gridView1.DataBind(); ) this should reload everything within.

3- Try using the same DataSource for the ddl and the GridView2.