Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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,

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...