We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Exporting Displayed values of the Grouping Grid

Thread ID:





40220 Jan 27,2006 06:01 PM UTC Jan 30,2006 10:14 AM UTC WinForms 1
Tags: Grouping
Erlly Bayuelo
Asked On January 27, 2006 06:01 PM UTC

Hi, We are exporting the grouping grid to a text file by looping through the DisplayElement collection. Depending on the Element type (GridCaptionRow, RecordRow, etc..) we are taking appropriate action to write the displayed cell value to a text file. The problem is we have logic in PrepareViewStyle that intercepts what gets printed out to the grid (screen) and displays what we want (e.g. if (fieldName = "LastName") e.Inner.Style.Text = "My Text"; ) . Is the value we interject persisted anywhere ? It displays on the grid as expected but if the user wants an export of what is currently displayed on the grid then in our export function we seem to have to go through the same conditional logic as in PrepareViewStyle to generate the displayed values (e.g. "My Text) again and write them out to a text file. Is this necessary since we are replacing what is outputted to the display with our own values?

stanleyj [Syncfusion]
Replied On January 30, 2006 10:14 AM UTC

Hi Erlly, Please try shifting your code which is in the PrepareViewStyleInfo handler to the QueryCellStyleInfo handler to see if that helps. One more thing to try, while retrieving the displayed cell value, try retrieving the FormattedText. Best regards, Stanley


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon