Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
Error DataFormatString
posted

Hello:

We are evaluating the WebDataGrid v13.1 control. We want to use it in our web app, but we have this issue: if a cell has a “19,65” value (note the comma separator as defined in Control Panel for floating point values), then:

  • The cell is painted correctly
  • When you edit the cell content, it shows “1965”

In a similar, case:

  • If you use row["Item"] =  10.24;   à it shows in edit mode “1024”, but:
  • If you use row["Item"] =  10.240;  à it shows in edit mode “10,24”!

 

 

Aspx:

        <ig:WebDataGrid ID="WebDataGrid1" runat="server" Height="350px" Width="400px" AutoGenerateColumns="False"

            DataKeyFields="id">

            <Columns>

                <ig:BoundDataField Key="id" DataFieldName="id" Header-Text="id">   

                   <Header Text="id"></Header>

                </ig:BoundDataField>

                <ig:BoundDataField Key="Item" DataFieldName="Item" DataFormatString="{0:N2}" Header-Text="Item">

                    <Header Text="Item"></Header>

                </ig:BoundDataField>

            </Columns>

            <EditorProviders>

                <ig:NumericEditorProvider ID="WebDataGrid1_NumericEditorProvider1">

                    <EditorControl ClientIDMode="Predictable" DataMode="Decimal"

                        MaxDecimalPlaces="2">

                    </EditorControl>

                </ig:NumericEditorProvider>

            </EditorProviders>

            <Behaviors>

                <ig:Activation>

                </ig:Activation>

                <ig:EditingCore>

                    <Behaviors>

                        <ig:CellEditing>

                            <ColumnSettings>

                                <ig:EditingColumnSetting ColumnKey="id" ReadOnly="True" />

                                <ig:EditingColumnSetting ColumnKey="Item"

                                    EditorID="WebDataGrid1_NumericEditorProvider1" />

                            </ColumnSettings>

                        </ig:CellEditing>

                    </Behaviors>

                </ig:EditingCore>

            </Behaviors>

        </ig:WebDataGrid>

 

 

 

 

 

Parents
No Data
Reply
  • 20255
    Offline posted

    Hello Antonio,

     I am still following your case. If you still have any concerns or questions I will be glad to help.

Children
No Data