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

Issue while Copying Content From RadGridView which is having select column

0 Answers 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
rajesh
Top achievements
Rank 1
rajesh asked on 04 Apr 2017, 05:07 AM

I am  facing an issue while copying content from RadGridView to Excel.
my RadGridView has a GridViewSelectColumn as first column, which must be ignored while copying.
When we select rows and copy the content, we are getting the first column header as 'System.Windows.Controls.CheckBox Content: IsChecked:False'

may i know how to avoid this.

I tried 

private void copyingcontent(object sender, GridViewCellClipboardEventArgs e)
        {
            if (e.Cell.Column.DisplayIndex == 0)
            {
                e.Cancel = true;
            }
        }

but this didn't solve my issue. if possible provide solution with code snippet 

 

there was same question long back 

http://www.telerik.com/forums/issue-while-copying-content-from-radgridview

but the solution provided is not correct. sdk browser doesnt have this solution.the example shown in sdk browser is copying nly cell , not complete grid including headers.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
rajesh
Top achievements
Rank 1
Share this question
or