switching between 2 DataGridTableStyle objects mapped to the same table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I have a DataGrid which contains a DataGridTableStyle object in it, mappe
to my Customers table. Is there a way to add another another
TableStyle object to the DataGrid and set its MappingName propert
to the Csutomers table at runtime, switching between the tw
when necessary

Thanks guys ;)
 
Hi ZooZee

It is possible, but you can't set the same mapping name for both
datagridtablestyles at once. You must set mapping name of the first style
to, let's say, "tableCustomers" and mapping name for the second style to ""
(empty string). At runtime you will see the first style and when you want to
see the second one you must clear the first mapping name and set the second
mapping name to "tableCustomers".
 
Back
Top