Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Common methods for different objects
Message
De
21/05/2009 12:14:36
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01400964
Message ID:
01401338
Vues:
31
>>>Well, too bad, guys :(((((((( I created the class, changed the form to use the classes - new properties - and now I hit the stone wall. The form designer wants to add
>>>
>>>((System.ComponentModel.ISupportInitialize)(this.grdOrderItems)).BeginInit();
>>> ((System.ComponentModel.ISupportInitialize)(this.grdSearch)).BeginInit();
>>> ((System.ComponentModel.ISupportInitialize)(this.grdOrderDetails)).BeginInit();
>>>
>>>and the DataGrid class doesn't implement this interface.
>>>
>>>I will have to go back to the default class, add the properties back to the main form rather than to the grid class, re-code everything again...
>>>
>>>Sounded like a good idea to use a custom class - but VS makes it too hard :((((
>>
>>System.Windows.Forms.DataGrid implements ISupportInitialize. Assuming in the lines above that grdOrderItems,grdSearch and grdOrderDetails derive from that class then they should be OK . Just tried this with no problem. What error are you getting?
>>Regards,
>>Viv
>
>The exact problem I described. Don't forget, I'm using .NET CE. I coded the class yesterday (took me some time to research, since I already forgot some C# I knew by ~ 6 months of not using it), then I re-coded my form using three new instances on the new grid class and then to my dismay found this problem - that seemed to be unsolvable.

I just tested in CE as well. No problems.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform