This is a migrated thread and some comments may be shown as answers.

CopyPropertiesFrom question

1 Answer 35 Views
GridView
This is a migrated thread and some comments may be shown as answers.
paul orsillo
Top achievements
Rank 1
paul orsillo asked on 16 Jun 2010, 08:35 PM
Are there specific circumstances that determines if CopyPropertiesFrom is called or not?

I have an override in my custom editor cell (GridViewBoundColumnBase) and it is never called.

the override looks like this:

  public override void CopyPropertiesFrom(GridViewColumn source) {
            base.CopyPropertiesFrom(source);
            FormatterActionEditorColumn column = source as FormatterActionEditorColumn;
            if (column != null)
                this.ActionDefinition = column.ActionDefinition;
        }
       
Thank you,
Paul




1 Answer, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 17 Jun 2010, 09:05 AM
Hello paul orsillo,

 CopyPropertiesFrom's purpose is to assist in cloning columns. Though not an often-seen approach, we clone the columns of one GridView to another in our WPF Printing demo to create a print-friendly version of the grid.

Though it's not compulsory to do so, you might want to override CopyPropertiesFrom as you have done, because in the future this method may be called with greater frequency.

Best wishes,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
paul orsillo
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Share this question
or