GridControl.ExportToText(Stream, String, Boolean, Encoding) Method

Exports the data displayed by the DefaultView (the MainView or the currently maximized detail View) to a stream in TXT format using the specified separator string, quotation and text encoding settings.