I have a webpage that creates a datatable programmatically depending on options that users have chosen on different pages. I store the table as a session variable, then when the time comes, I assign the table to the grid during NeedDataSource. No columns are explicitly defined in the RadGrid. One of the columns could contain a percentage value.
The problem comes when someone tries to sort this percentage column: It seems to sort as text! 100% will show up next to 10% and be listed lower than 95%. I read through the forums and the only remedy I found was to define the radgrid column as a percentage value. Unfortunately, I have not explicitly defined the columns in the radgrid, so RadGrid1.MasterTableView.Columns.Count = 0 and I cannot set column X's property to percentage.
Any suggestions for how to fix my sorting problem?
The problem comes when someone tries to sort this percentage column: It seems to sort as text! 100% will show up next to 10% and be listed lower than 95%. I read through the forums and the only remedy I found was to define the radgrid column as a percentage value. Unfortunately, I have not explicitly defined the columns in the radgrid, so RadGrid1.MasterTableView.Columns.Count = 0 and I cannot set column X's property to percentage.
Any suggestions for how to fix my sorting problem?