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>
<ig:CellEditing Enabled="false">
<ColumnSettings>
</ColumnSettings>
</ig:CellEditing>
<ig:RowAdding AddNewRowClientEvents-EnteringEditMode="InitNewNote" Alignment="Top">
<ig:RowAddingColumnSetting ColumnKey="dateNote" ReadOnly="true" />
<ig:RowAddingColumnSetting ColumnKey="usager" ReadOnly="true" />
</ig:RowAdding>
</Behaviors>
</ig:EditingCore>
</ig:WebDataGrid>
thanks in advance for any tips :)
Hi rtutus,
It has been some time since your post but in case that you still need assistance I will be happy to help.
If you want to use DataTable as data source for the WebDataGrid, you have to use manual CRUD. You can find a demonstration of manual CRUD at the following link - http://blogs.infragistics.com/aspnet/media/p/218617.aspx. A list of supported data sources can be found here - http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=WebDataGrid_Supported_Data_Sources.html.
If you have any other questions please feel free to contact me.