Hi,
I managed to find out that I need to put ArrayList in the
TableStyles.MappingName property of the DataGrid. My problem now is that I
am adding multiple objects to the array list and only the first is shown in
the grid. I havent got a clue why this is- none of the properties seem to
indicate what might be going wrong or what I might have omitted.
Please help!
j.
> Hi,
>
[quoted text clipped - 10 lines]
>
> j.
Otis Mukinfus - 23 Jun 2006 02:35 GMT
>Hi,
>
[quoted text clipped - 22 lines]
>>
>> j.
Good luck with your project,
Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
Otis Mukinfus - 23 Jun 2006 02:54 GMT
>Hi,
>
[quoted text clipped - 22 lines]
>>
>> j.
John,
If you are using .NET 1.x you will need to implement IBidingList with your
collections. ArrayList objects do not implement IBindingList, so they will not
behave as you expect with DataGrids. Your objects will also need to implement
IEditable. The help files for .NET 1.x have all the information you need to get
started, but there is a lot of work for you to do along the way.
The same is true of .NET 2.0 but it is not as difficult as with .NET 1.x, since
there are generic classes specifically for this type of databinding. A good
book on Data Binding with .NET 2.0 is "Data Binding with Windows Forms 2.0" by
Brian Noyes. Publisher: Addison Wesley. I believe he may have also written a
book targeting .NET 1.x, but do not know that for a fact.
With either version of .NET you will be doing a lot of coding to get it done.
You may want to reconsider using DataSets and DataAdapters after reading up on
what is required.
Good luck with your project,
Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com