This question is locked. New answers and comments are not allowed.
Good day telerik team,
i would like to ask if there is a possibility that i can put title above my exported gridview.
heres my code:
I attached an image of what it would likely look.. ~_~
It would be a big help to my project thanks.
i would like to ask if there is a possibility that i can put title above my exported gridview.
heres my code:
private void Export_Doc(object sender, System.Windows.RoutedEventArgs e) { ExportDialog("doc", "Word", ExportFormat.Html); } private void Export_excel(object sender, System.Windows.RoutedEventArgs e) { ExportDialog("xls", "Excel", ExportFormat.Html); } private void Export_csv(object sender, System.Windows.RoutedEventArgs e) { ExportDialog("csv", "CSV", ExportFormat.Csv); } private void ExportDialog(string extension, string selectedItem, ExportFormat format) { SaveFileDialog dialog = new SaveFileDialog(); dialog.DefaultExt = extension; dialog.Filter = String.Format("{1} files (*.{0})|*.{0}|All files (*.*)|*.*", extension, selectedItem); dialog.FilterIndex = 1; if (dialog.ShowDialog() == true) { using (Stream stream = dialog.OpenFile()) { GridViewExportOptions exportOptions = new GridViewExportOptions(); exportOptions.Format = format; exportOptions.ShowColumnFooters = true; exportOptions.ShowColumnHeaders = true; exportOptions.ShowGroupFooters = true; RadGridView1.Export(stream, exportOptions); } } }I attached an image of what it would likely look.. ~_~
It would be a big help to my project thanks.
