Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing GridView
Message
De
28/01/2011 11:02:41
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01497645
Message ID:
01497660
Vues:
31
>>>>>>the dataset is saved to a session variable and SetCurrentPolicy has this code in it:
>>>>>>
>>>>>>
                if (Session["dsPolicyRider"] != null)
>>>>>>                {
>>>>>>                    DataSet dsPolicyRider = (DataSet)Session["dsPolicyRider"];
>>>>>>                    this.oPolicyRider.SetCurrentDataSet(dsPolicyRider);
>>>>>>                }
>>>>>
>>>>>What is this.oPolicyRider - is it a BO? Should you somehow re-bind the grid after setting the DataSet?
>>>>
>>>>Yes, it's a BO. I think the MM.NET handles the re-binding, but how do I do that manually? GridView.DataBind()? If so I've tried that and it doesn't work.
>>>
>>>Yes, something like this. I think to re-bind, you need to unbind first (similar to VFP grid). I had code doing so, let me know if you want me to search for it.
>>
>>I can't find anything like Gridview.unbind() so would appreciate more specific advice.
>>
>>Thanks
>
>Looks like all I have is
>
> ProfilesGrid.DataSource = ds;
> ProfilesGrid.DataBind();
>
>So, set dataset and DataBind.

Thanks, that was it.
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform