hi,
iam binding data to grid using datasource. i have given some formulas in submit button. for saving these values generated by formulas to database you have given some code using datarowview
like this
DataRowView rowView = (DataRowView)sheet.GetRowBindObject(row);
rowView["heading"] = sheet.Cells[row, 3].Value;
in save command we have written this.
its saving the records fine when we add new records. now my problem is : after deleting a row from the grid i click on save button its giving error. at the place
DataRowView rowView = (DataRowView)sheet.GetRowBindObject(row);
rowView["heading"] = sheet.Cells[row, 3].Value;
what is the problem iam not getting, can you please rectify my problem.
swapna