tfowler
Well-known member
Anyone know how to re-use a DataGridTableStyle object? When I try to attach an object, which I already attached to a different DataGrid, I get the error message:
"Unhandled Exception: System.ArgumentException: Cannot add a DataGridTableStyle already parented to another DataGrid."
Ive tried removing the TableStyle from the 1st DataGrid with Remove and RemoveAt. Neither one seem to make a difference. I tried setting the TableStyle objects DataGrid property to Nothing...doesnt work. How in the heck do you "un-parent" a DataGridTableStyle? Any ideas?
Thanks in advance,
"Unhandled Exception: System.ArgumentException: Cannot add a DataGridTableStyle already parented to another DataGrid."
Ive tried removing the TableStyle from the 1st DataGrid with Remove and RemoveAt. Neither one seem to make a difference. I tried setting the TableStyle objects DataGrid property to Nothing...doesnt work. How in the heck do you "un-parent" a DataGridTableStyle? Any ideas?
Thanks in advance,