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
320
can only update 1 text field at a time
posted

Hi

I have set up a WebDataGrid, attached it to a ObjectDataSource.

The grid shows:

ID | Text1 | Float1

As columns.

 If i update a single Text1 cell...it gets updated.

If I update Text1 and Float1 from the same row, they both get updated.

If I update multiple Text1 and Float1 Fields, all the Float1 fields update, yet none of the text fields.

Please help

Here is the code:

 <ig:WebDataGrid ID="WebDataGrid1" DataSourceID="ObjectDataSource1" runat="server"
        DataKeyFields="ProductDataId" Width="900px">
        <Behaviors>
            <ig:Paging PagerAppearance="Bottom" PageSize="3" Enabled="true" />
            <ig:Activation />
            <ig:EditingCore>
                <Behaviors>
                    <ig:CellEditing Enabled="true">
                        <EditModeActions EnableF2="true" EnableOnActive="true" MouseClick="Single" />
                    </ig:CellEditing>
                </Behaviors>
            </ig:EditingCore>
        </Behaviors>
    </ig:WebDataGrid>
    <br />
    <asp:Button ID="SaveButton" runat="server" Text="Save" />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:ObjectDataSource EnablePaging="True" ID="ObjectDataSource1" runat="server" SelectCountMethod="GetProductDataCount"
        SelectMethod="GetProductData" TypeName="RisCuraWs.Service" UpdateMethod="UpdateProductData">
        <UpdateParameters>
            <asp:Parameter Name="ProductDataId" Type="Int32" />
            <asp:Parameter Name="Text1" Type="String" />
            <asp:Parameter Name="Float1" Type="Decimal" />
            <asp:SessionParameter Name="UserId" SessionField="UserId" Type="Int32" />
        </UpdateParameters>
        <SelectParameters>
            <asp:QueryStringParameter Name="ProductId" QueryStringField="id" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>