Hi,
I have created a class with some properties
Class Manager
Private msName a s string
Private msSurnaname as string
Private mdSalary as double
Public Property Name() as string
.....Implementation
....Similarly implemented all the properties
...Some functions
End Class
To make class bindable I created a custom collection class
Class Managers
Inherits CollectionBase
Public Function AddManager() as Manager
'implementation code....
End Function
Public ReadOnly Property Item(byval index as integer) as Manager
'implementation code....
End Property
End Class
When I create instance of Managers class and added some manager objects to
it. I tried to bind this to a third party grid (Data grid wont bind). It
worked..But my problem is how I can control order of properties in columns.
I see Columns in Surname, Name, Salary order...What should I do to ensure
that my columns come in Name, Surname abd Salary order?
I wonder How dataset achieve this? In dataset you'll always se fields in
same order as they appear in XSD schema..Is there any way to achive this
functionality?
Thanks,
Abhishek
jain_abhishek_77@yahoo.co.in