A
Arda Coskun
Hi,
I did sorting on Datagrid control for integers. However, there is a problem;
when I sort ascending it makes> 23, 3, 44, 5 . But I want 3, 5, 23, 44.
How can I solve this?
I'm loading XML data, how can I tell the datagrid that the score column is
containing integers?
DataSet oData = new DataSet();
oData.ReadXml(Server.MapPath("HighScores.xml"));
DataView oView = new DataView(oData.Tables[0]);
oView.Sort = "Score DESC";
DataGrid1.DataSource = oView;
DataGrid1.DataBind();
Thanks,
I did sorting on Datagrid control for integers. However, there is a problem;
when I sort ascending it makes> 23, 3, 44, 5 . But I want 3, 5, 23, 44.
How can I solve this?
I'm loading XML data, how can I tell the datagrid that the score column is
containing integers?
DataSet oData = new DataSet();
oData.ReadXml(Server.MapPath("HighScores.xml"));
DataView oView = new DataView(oData.Tables[0]);
oView.Sort = "Score DESC";
DataGrid1.DataSource = oView;
DataGrid1.DataBind();
Thanks,