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
830
I don t see my newly added row automatically in the session datatable variable
posted

Hi,

 

I have an webdatagrid bound to a datatable session object. when I add new row to my webdatagrid, I go to the session object, I can NOT find the new row I added to my grid.

However, things work fine with editing existing rows, if i edit a column of an existing row, i go to my session datatable and I find the changes, but not when I add new row.

Is not adding row supposed to be automatic like the behaviour when modifying an exisiting row?

Here is the code I used if someone does not mind helping me in this one:

<ig:WebDataGrid ID="NoteContent" DataKeyFields="dateNote" runat="server" Height="200px" Width="650px" CssClass="fullscreengrid"

            AutoGenerateColumns="False"   HeaderCaptionCssClass="CenterCellContent" ShowFooter="True">

 

            <Columns>

 

                <ig:BoundDataField DataFieldName="dateNote" Key="dateNote" 

                    DataFormatString="{0:yyyy-MM-dd}" DataType="System.DateTime"  Width="150px">

                    <Header Text="dateNote" />

.......

 

 </Columns>

            <EmptyRowsTemplate>

                Aucune information disponible avec ces paramètres

            </EmptyRowsTemplate>

 

            <Behaviors>

            <ig:Activation></ig:Activation>

            <ig:EditingCore>

 

            <Behaviors>

            <ig:CellEditing Enabled="false">

            <ColumnSettings>

 

            </ColumnSettings>

            </ig:CellEditing>

            <ig:RowAdding AddNewRowClientEvents-EnteringEditMode="InitNewNote" Alignment="Top">

            <ColumnSettings>

            <ig:RowAddingColumnSetting ColumnKey="dateNote" ReadOnly="true" />

            <ig:RowAddingColumnSetting ColumnKey="usager" ReadOnly="true" />            

            </ColumnSettings>

            </ig:RowAdding>

 

 

            </Behaviors>

            </ig:EditingCore>

            </Behaviors>

            </ig:WebDataGrid>

 

thanks in advance for any tips :)

Parents
No Data
Reply Children
No Data