General information
Category:
Coding, syntax and commands
Environment versions
Network:
Windows 2003 Server
>>>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only