Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ReadOnly BO's
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Divers
Thread ID:
01223268
Message ID:
01226214
Vues:
21
Hi!

>>1] When I click into a grid the toolstrip does not correctly refresh itself. The first/next/prior/last buttons are not enabled/disabled properly based on the values of the current grid. Once I move to another row in that grid then the toolstrip works ok. Is there a way for me to refresh the ToolStrip?
>
>You can call the form's NavigateData() method with the enum value mmNavigate.Refresh. For example:
>
>
this.NavigateData(mmNavigate.Refresh);
I tried the code mentioned below in the enter event of a mmDataGridView Control and it seems to work ok.
this.RegisterPrimaryBizObj(this.oChildBO2);
this.NavControl = this.grdChildBO2;
this.oChildBO2.CallStateChange(mmBusinessState.Bind);
Should I replace these lines with what you suggest?
this.NavigateData(mmNavigate.Refresh);
>
>>2] Adds in the toolstrip also don't work as well.
>
>Can you be more specific?

It does add a new row but does not highlight and move to that new row.

>
>>3] How do I handle textboxes or other controls that are not in a grid? Do I need to put this code in each controls Enter and Leave Events?
>
>What is it you want to handle with other controls?

What I am trying to say here is that if we are Entering a grid control then no problem I can
this.NavControl = this.grdParentBO1;
but if while Entering a textbox control then what should I set the this.NavControl to?
this.NavControl = this.txtName??????;
>
>>4] Is the "this.NavControl = this.grdParentBO1;" also required?
>
>Yes, it is.
>
Ok!

>>To get all this to work with a common tool strip seems to be a bit of extra code is there a cleaner way to do this or is it better to not have a common toolstrip.
>
>It's best to have a common toolstrip.
>

Do you have any plans to come out with mmToolStrip which has not just the Navigation buttons but also other common buttons/textbox's (Add,Delete,Save,Cancel,"Goto RecNo", "Row x of n") on it? Similar to the BindingNavigator VS generates when we drap and drop an BO from the DataSources window.

Thanks

Sarosh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform