|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Sorting DataView problemHi
I have a control including a DataGrid. The DataGrid is bound to a DataView. The first column of the DataGrid contains numbers from 1, 2, 3, 4, ... I want to show them in order so I edit the sort property of the DataView like this: dvDocumentKind.Sort = "DocumentInfo_No"; When i run the page the order in the DataGrid is shown like this: 1, 10, 11, 2, 3, 4, 5, 6, 7, 8, ,9, 12, 13, .... 19, 20, 21, 22 etc. Why is 10 and 11 shown after 1? Thanks Julia 10 and 11 are shown after 1 because the values are sorted as strings, not as
integers. -- Show quoteHide quoteHege Servold hege.servold(AT)bekk.no "Julia" wrote: > Hi > > I have a control including a DataGrid. The DataGrid is bound to a DataView. > The first column of the DataGrid contains numbers from 1, 2, 3, 4, ... I want > to show them in order so I edit the sort property of the DataView like this: > dvDocumentKind.Sort = "DocumentInfo_No"; > > When i run the page the order in the DataGrid is shown like this: 1, 10, 11, > 2, 3, 4, 5, 6, 7, 8, ,9, 12, 13, .... 19, 20, 21, 22 etc. Why is 10 and 11 > shown after 1? > > Thanks > Julia Hi
Yes, that helped! Thanks Julia Show quoteHide quote "Hege Servold" wrote: > 10 and 11 are shown after 1 because the values are sorted as strings, not as > integers. > -- > Hege Servold > hege.servold(AT)bekk.no > > > "Julia" wrote: > > > Hi > > > > I have a control including a DataGrid. The DataGrid is bound to a DataView. > > The first column of the DataGrid contains numbers from 1, 2, 3, 4, ... I want > > to show them in order so I edit the sort property of the DataView like this: > > dvDocumentKind.Sort = "DocumentInfo_No"; > > > > When i run the page the order in the DataGrid is shown like this: 1, 10, 11, > > 2, 3, 4, 5, 6, 7, 8, ,9, 12, 13, .... 19, 20, 21, 22 etc. Why is 10 and 11 > > shown after 1? > > > > Thanks > > Julia
Problem updating with TableAdapter in Detailsview.
Gridview right border on a per-column basis Validators - error message not showing when JS disabled & only server side validation occurs "AJAX" techniques for the ASPNET 2.0 TreeView control? aspx and ascx I need a chart control with a special feature ASP.NET 2.0 Intrinsic Treeview control errors on a specific machine making a dropdownlist visible when clicking in a textbox of a detailsview? Interactivity between placeholders & objectdatasouces ITemplates wrapped in extra <div> tags by .net 2.0 / MCMS |
|||||||||||||||||||||||