RcBuilder@walla.com
call centre: 054-5614020

winforms – export gridview to csv or excel

Posted by: RcBuilder  /   Category: CSV / Excel / File / Files / folderBrowserDialog / MessageBox / SOURCE CODE / StringBuilder / winForms   /   No Comments
08
Sep
2014

winforms - export gridview to csv or excel string xls_file_name = .... var result = folderBrowserDialog1.ShowDialog(); if (result != DialogResult.OK) return; string xls_file_path = string.Concat(folderBrowserDialog1.SelectedPath, "\\", xls_file_name); StringBuilder sb = new StringBuilder(); // HEADER ROW // foreach (DataGridViewColumn col in dg1.Columns) sb.AppendFormat("\"{0}\"{1}", col.Name, col.Index == dg1.Columns.Count ? string.Empty : ","); sb.Append(Environment.NewLine); // CONTENT // foreach (DataGridViewRow row in dg1.Rows) { foreach (DataGridViewColumn col in dg1.Columns) sb.AppendFormat("\"{0}\"{1}", dg1.Value, col.Index ==.

Read more

winForms Progress Bar

Posted by: RcBuilder  /   Category: Controls / ProgressBar / winForms   /   No Comments
08
Jul
2014

winForms Progress Bar remark drag progressBar object from toolbox into the form using progressBar1.Minimum = 0; progressBar1.Maximum = domains.Count; foreach (var item in.

Read more
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים