Devexpress grid xamarin example8/26/2023 ![]() ![]() Using (SaveFileDialog saveDialog = new SaveFileDialog()) Use GridControl.ExportToXls(String) MethodĮxample code snippet: private void mnuExportTable_ItemClick_1(object sender, e) To know various export methods of XtraGrid, go through Export Methods and Settings My problem is in the Export button the click event. Private void ExportBtn_Click(object sender, System.EventArgs e)įor (int i = 1 i < + 1 i++) OleDbDataAdapter da = new OleDbDataAdapter(Command) OleDbCommand Command = new OleDbCommand ("select * FROM. OleDbConnection con = new OleDbConnection() Ĭon.ConnectionString = "Provider=.12.0 Data Source=C:\\Users\\pc\\Documents\\Emp.xlsx Extended Properties=\"Excel 12.0 HDR=Yes\"" ĭtSchema = con.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object ) Private void simpleButton1_Click(object sender, System.EventArgs e) TODO: Add any constructor code after InitializeComponent call Required for Windows Form Designer support ApplicationClass ExcelApp = new .ApplicationClass() Į(Type.Missing) ![]() I really Appreciate your help public class Form1 : That's the code that i'm trying to write. I am using DevExpress GridView I need to send it to excel and I'm getting problems to loop to every cell and column because DevExpress contains different methods then the DataGridView
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |