Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7439881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:46:10+00:00 2026-05-29T10:46:10+00:00

I have a DevExpress WPF grid (version 9.3). When I export to excel, it

  • 0

I have a DevExpress WPF grid (version 9.3). When I export to excel, it has horrible additional rows* that completely mess up excel’s functionality such as auto filter.

enter image description here

I’ve been trying to make sense of the documentation and I think that the solution may lie in setting TableView.PrintCellStyle somehow. But it’s really not clear.

I am using the TableView.ExportToXls(string path); method.

Is there a quick way of switching off this behaviour and getting a working xls file?

*I understand that this is to help with creating a spreadsheet that looks the same as the grid. Horrible default behaviour – a working spreadsheet is more important than it looking like the UI.

EDIT: @DmitryG – I have tried this and now, instead of three lines I now get two. Better, but not solved.

enter image description here

I have also checked the KB article you cited and get the following result:

enter image description here

I am using version 9.3.6.

Anything else I can try?

EDIT 2: Have tried the value converter approach. Getting the same additional row.

enter image description here

Worst case, is there anyway of excluding these columns from the export?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:46:11+00:00Added an answer on May 29, 2026 at 10:46 am

    I was still getting the additional rows. The quickest and easiest way to get around this was to set the EditSettings of the column so it exports ‘True’ or ‘False’, export the grid then set the column back to a checkbox.

    Thusly:

    public void ExportGridToExcel()
    {
        TableView.Grid.Columns["*FieldName*"].EditSettings = new TextEditSettings();
    
        TableView.ExportToXls(@"C:\temp\spreadsheet.xls");
    
        TableView.Grid.Columns["*FieldName*"].EditSettings = new CheckEditSettings();
    }
    

    NB It’s the fieldname the column is bound to and NOT the column name. That caught me out for a minute.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a grid (DevExpress XtraGrid, if that matters) which is bound to a
I have a DevExpress grid that needs to be refreshed every time the value
I have a devexpress grid: each row has a checkbox and a text column,
I have a solution with about 20 projects (that use Devexpress controls) in and
I have a Winform App that uses a 3rd Party Library of Controls, DevExpress.
I have a Devexpress Gridview . I generated a GridViewCommandColumnCustomButton in that Gridview on
I have a Devexpress Gridview that is linked to a delete, fetch and update
VB .NET 4 WinForms application. I have a (DevExpress) grid bound to an IEnumerable(Of
i have web form running in asp.net & c#.net, The form has a devexpress
I've recently overridden the DevXpress WPF grid to give myself a SelectedObject property that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.