I want to save a dataset table to an excel file just like the grid exporter. I want to dynamically create the grid without displaying anything and use the grid exporter to export it. The code below runs and there are multiple rows in the dataset with just 1 table. The wg.Refresh(); does not fill the grid. So I am asking how do I get the grid filled with the data. Again, the Grid is not on a form.
Infragistics.Win.UltraWinGrid.
();
wg.DataSource = dsInput;
wg.DataMember =
;
wg.Refresh();
band = wg.DisplayLayout.Bands[0];
//foreach (Infragistics.Win.UltraWinGrid.UltraGridBand band in wg.Rows.Band)
wg.Rows)
{
count = band.Columns.Count - 1; count >= 0; count--)
band.Columns[count].PerformAutoResize(Infragistics.Win.UltraWinGrid.
.AllRowsInBand);
}
Infragistics.Win.UltraWinGrid.ExcelExport.
ux.Export(wg,
);
Hello Rookertrusted,I am still following this forum thread.Please feel free to let me know if you have any other questions with this matter.
Hello Rookertrusted,
I have verified that you could set the desired styles to your ultraGrid columns, prior exporting the UltraGrid to excel in order to be able to have to all text visible in the excel.
For your dateTime column please set the Style to of column through the Bands[0] object to DateTime, and for your Boolean column set the column style to be .Edit.
Please feel free to let me know if there is any other questions with this matter.