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
25
Binding with xamDataGrid
posted

Hello,

I have four buttons in my aplication: (Save, Cancel, Add, Delete), xamdatagrid and several textboxes. Each of textbox is binding with ActiveRecord.Cells[..] from grid. When i click in Add button - grid add new row (in id column is -1 value). Next i have to submit changes, so click Save button. In the SQL database row is added - column id is a primary key an set identity, so have new value increment by 1, but in xamdatagrid id value is still -1. Nothing not change any effects, even  this:

grid.datasource=null;
grid.datasource=DataTable;

What can i do?