Hi Arnaldo,
You can use the normal method of adding a DataGridTableStyle and DataGridColumnStyles to the DataGrid. The only difference when using an ArrayList is that the MappingName property of the tablestyle should be "ArrayList" (without the quotes), then just use the properties of your object as the MappingName for the columnstyles that you want to display. Once you set the mappingname of the tablestyle to "ArrayList", almost all of the documentation about tablestyles and columnstyles will now be useful to you.
>Hi to All!!
>
>I've created a class to Hold the RowInfo of any subject, e.g.
>
>
>Class RowInfo
> property IdRow as integer
> property RowDesc as string
> property RowValue as double
>end Class
>
>
>then I create an ArrayList which elements will be RowInfo type.
>I fill up the ArrayList, and assign it to the DataSource of the DataGrid control, and then I want to apply a TableStyle
>
>And exactly there is where my problem arrives, applying the table style doesn't works,
>
>What is the methodology to apply a TableStyle to a DataGrid whose DataSource is an ArrayList?
>
>Since I'm new in .net, all my efforts in solving this one have been in vain.
>Maybe I need some Book for the DataGrid Specifically.
>
>Any help would be appreciated, thanks in advance!
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi