Re-use DataGridTableStyle

tfowler

Well-known member
Joined
Aug 16, 2005
Messages
83
Location
Columbus, OH
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? :confused: Any ideas?

Thanks in advance,
 
Back
Top