tfowler Posted August 19, 2005 Posted August 19, 2005 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." I've tried removing the TableStyle from the 1st DataGrid with Remove and RemoveAt. Neither one seem to make a difference. I tried setting the TableStyle object's DataGrid property to Nothing...doesn't work. How in the heck do you "un-parent" a DataGridTableStyle? :confused: Any ideas? Thanks in advance, Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.