How to get original data row value from WebGrid data source ?

9 replies. Last post: May 10, 2010 9:36 AM by Andi Santoso
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Gaurav DesaiMember

We are using WebGrid 7.0 in SharePoint Web part , we have a self refrencing editable grid and rendering the web grid programatically.

We have certain BatchUpdate issue on which WebGrid development team from Intersoft is working hence i am trying to figur out old value and new value of perticular cell by means of inspecting DataTable which is assigned to WebGrid as data source.

 

I am using following code to check what was the old cell value of the web grid before the grid cell was modified.

 

DataTable dtMyTasks = interSoftWebUIGrid.DataSource as DataTable;
DataRow[] dataRowArray = dataTableInstance.Select(null,null,DataViewRowState.OriginalRows); 
DataRow originalDataRow = dataRowArray[rowIndex][columnIndex, DataRowVersion.Original]  

But in above code originalDataRow surpricingly refers to the latest cell value instead of original cell value .

Any idea ?

All times are GMT -5. The time now is 6:10 AM.
Previous Next