G
Guest
Does anyone know if it is possible to add the same tablestyle to 2 different datagrids?
i have tried the following:
DGrid1.TableStyles.Add(TSCaraBooking)
DGrid2.TableStyles.Add(TSCaraBooking)
but i get an error that tells me :
An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll
Additional information: Cannot add a DataGridTableStyle already parented to another DataGrid.
How would i get around this?
Do i have to create the same tablestyle again but just name it something different?
Seems a clumsy way of doin it. )
Any advise?
i have tried the following:
DGrid1.TableStyles.Add(TSCaraBooking)
DGrid2.TableStyles.Add(TSCaraBooking)
but i get an error that tells me :
An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll
Additional information: Cannot add a DataGridTableStyle already parented to another DataGrid.
How would i get around this?
Do i have to create the same tablestyle again but just name it something different?
Seems a clumsy way of doin it. )
Any advise?