Hello,
Per this thread, I see that we now have proper copy functionality in the radgridview control:
http://www.telerik.com/community/forums/winforms/gridview/copying-multiple-rows-from-gridview-does-not-preserve-linebreaks.aspx
I am able to successfully use
My question is this:
How would I go about using this functionality in a hierarchical view, where the user wishes to copy data in the "child" template.
does not have a corresponding "BeginRowCopy"
When I call grid.MasterTemplate.BeginRowCopy() I receive repeated errors stating:
Property accessor 'Name' on object 'class name' threw the following exception: 'Object does not match target type.'
To clarify this error, the parent table contains a column (and property corresponding to the object) called "Name".
The child templates data does not contain a property of that name. The obvious conclusion is that grid.MasterTemplate.BeginRowCopy() only works for the master template and does not operate on the child template.
Any suggestions on how to accomplish this?
Update: Ctrl-C exhibits the same issue.
Thank you.
PS: It is a shame that the only documentation on the matter came from another forum post. It would be helpful to see Copy/Paste functionality fleshed out in the WinForm Documentaiton or KB articles.
Per this thread, I see that we now have proper copy functionality in the radgridview control:
http://www.telerik.com/community/forums/winforms/gridview/copying-multiple-rows-from-gridview-does-not-preserve-linebreaks.aspx
I am able to successfully use
grid.MasterTemplate.BeginRowCopy()
My question is this:
How would I go about using this functionality in a hierarchical view, where the user wishes to copy data in the "child" template.
grid.Templates(0)
When I call grid.MasterTemplate.BeginRowCopy() I receive repeated errors stating:
Property accessor 'Name' on object 'class name' threw the following exception: 'Object does not match target type.'
To clarify this error, the parent table contains a column (and property corresponding to the object) called "Name".
The child templates data does not contain a property of that name. The obvious conclusion is that grid.MasterTemplate.BeginRowCopy() only works for the master template and does not operate on the child template.
Any suggestions on how to accomplish this?
Update: Ctrl-C exhibits the same issue.
Thank you.
PS: It is a shame that the only documentation on the matter came from another forum post. It would be helpful to see Copy/Paste functionality fleshed out in the WinForm Documentaiton or KB articles.