Hello,
Here is what I am trying to achieve. I have a grid which consists of Template columns and I use entity framework to make updates.
The gird will always have one row and the row is in editable mode at all times. Along with the grid I have couple of other controls and another grid on the same page. And I am using an external Save button to save my changes.
Now I dont want to save the Grid Data if the row data was not changed at all. I have tried using
Here is what I am trying to achieve. I have a grid which consists of Template columns and I use entity framework to make updates.
The gird will always have one row and the row is in editable mode at all times. Along with the grid I have couple of other controls and another grid on the same page. And I am using an external Save button to save my changes.
Now I dont want to save the Grid Data if the row data was not changed at all. I have tried using
ExtractValuesFromItem and SavedOldValues. Both of them return nulls. Also I am using Bind and NeedDataSource as suggested in various posts.
I am left with following options :
1) Change the entity framework resultset to a Dataset and add that dataset as a public property and use
Dim changedRows As DataRow() = ordersTable.Select("OrderID = " + editedItem.OwnerTableView.DataKeyValues(editedItem.ItemIndex)("OrderID").ToString()
2) Add the OntextChanged event and then do some javascript.
Questions:
Q1 What is the best way of detecting changes and are there any other alternatives?
Q2 Is ther anything that I am missing in my current method of ExtractValuesFrom Item?
Please help. I have gone through numerous threads and downloaded many samples. They work but does not fit into my requirement.
Thanks