WebGridSordi

6 replies. Last post: August 9, 2012 10:34 PM by Hans Kristian
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
armore1972Member

Hi we have a Grid with a column (WebCombo) that contain this items ( product code)

'0090 010 05 5'

'0966 010 04 4'

'7999 020 05 5'

...

if we try to sorting this column, the sort doesn't work, in attach file there are an example

the correct sorting is

06240000....

071566 05...

071566 21...

07201621....

any ones can suggest me how to sorting this column?

Thanks


<ISWebGrid:WebGrid ID="WebGrid1" runat="server" UseDefaultStyle="True"
Width="100%" OnInitializeDataSource="WebGrid1_InitializeDataSource" OnAddRow="WebGrid1_AddRow"
OnInitializeLayout="WebGrid1_InitializeLayout" OnUpdateRow="WebGrid1_UpdateRow"
OnDeleteRow="WebGrid1_DeleteRow" DataCacheStorage="Session" DefaultStyleMode="Elegant"
OnInitializeRow="WebGrid1_InitializeRow"
OnInitializePostBack="WebGrid1_InitializePostBack" Style="margin-top: 0px; z-index: 90;" AllowAutoDataCaching="False">
<LayoutSettings AllowAddNew="Yes" AllowDelete="Yes" AllowEdit="Yes" AllowSorting="Yes" AutoHeight="true"
ResetNewRowValuesOnError="False" GridLines="Vertical" ColumnFooters="Yes" InProgressUIBehavior="ChangeCursorToHourGlass"
AllowExport="No" VerboseEditingInformation="True" AllowDefaultStyleMerging="True"
ColumnSetHeaders="Default" FilterBarVisible="False" AutoFitColumns="True" DisplayDetailsOnUnhandledError="true"
SelectFirstCellOnAdd="True" NewRowLostFocusAction="AlwaysPrompt" AllowMultipleSelection="Default"
>
<%--AllowSelectColumns="Yes" ShowColumnAction="True" >--%>
<ClientSideEvents OnBeforeAdd="WebGrid1_OnBeforeAdd" OnBeforeUpdate="WebGrid1_OnBeforeUpdate" OnBeforeDelete="WebGrid1_OnBeforeDelete" OnAfterAdd="WebGrid1_OnAfterAdd" OnAfterUpdate="WebGrid1_OnAfterUpdate"
OnExitEditMode="WebGrid1_OnExitEditMode" OnEnterEditMode="WebGrid1_OnEnterEditMode" OnRowSelect="WebGrid1_OnRowSelect" OnAfterDelete="WebGrid1_OnAfterDelete"
OnKeyDown="WebGrid1_DoKeyDown" OnCellDblClick="WebGrid1_OnCellDblClick" OnUnhandledError ="WebGrid1_OnUnhandledError"
OnBeginRowEditing="WebGrid1_OnBeginRowEditing" OnEditKeyDown="WebGrid1_OnEditKeyDown"
OnRowValidate="WebGrid1_OnRowValidate" OnAfterInitialize="WebGridX_OnAfterInitialize" OnLostFocus="WebGrid1_OnLostFocus" />
<FrameStyle BackColor="#EAF3FF">
</FrameStyle>
<TextSettings Language="UseCustom" />
</LayoutSettings>
<RootTable Caption="OrderPositionCollection" DataKeyField="salesorderdetailid">
<Columns>

<ISWebGrid:WebGridColumn Caption="Product" DataMember="productid" Name="productid"
Width="190px" EditType="WebComboNET" WebComboID="WebComboProd" InputRequired="True"
InputRequiredErrorText="Specify the Product." TreatMarkupAsLiteralText="True"
ColumnType="Custom">

All times are GMT -5. The time now is 4:19 PM.
Previous Next