Hi Team,
In my code i am trying to download a column as date using the following code .When file get downloaded the particular column data type
is shown as date but while sorting it on asc or dec order it is sorting based on first two number
and not as date can you help me to fix this issue.
Aspose.Cells.Style cstyle = null;
StyleFlag style = new StyleFlag();
switch (dbColumn.ColumnName)
{
case “StartDate”:
cstyle = this.ExcelWorkBook.Styles[this.ExcelWorkBook.Styles.Add()];
cstyle.Number = 14;
style.NumberFormat = true;
style.All = true;
break;
}
if (cstyle != null)
{
Aspose.Cells.Range colRange = cells.CreateRange(startTblRowIndex + 1, i, table.Rows.Count, 1);
colRange.ApplyStyle(cstyle, style);
}