hi,
we are assigning data from sql server as data source to the grid (ASPxGridView) and using data editing. using as a web user control. we need a server-side postback on click of edit button/new button, for which we had to turn off EnableCallbacks (set to false). also using a custom column as PK as it doesnt support composite keys.
1. when user clicks on update(save) button in new record, e.NewValues is always null, no matter what we do. if we turn on the EnableCallbacks (set to true), then it gets the values (but we loose out other option #1). if we set callbacks to false, is there any other way to get values from the new row ?
2. looks like the gridview calls its own internal method to update the datasource, so we call e.Cancel=true and update the data ourself and refresh the data source of the grid. otherwise, it gives an error "method not supported". Is this the correct/only method ? Are we doing it correct ?
3. after following #2, data is saved and refreshed but the grid is still in edit mode, how to return to browse mode (display mode) ?
Thanks in advance. Has anyone tried to create a user control ? If yes, please let me know, where can see any sample ?