Posted on: 12/20/2015 12:30:00 PM | Views : 1265

Hi 
I have a grid with some data.And i can delete the data of one row and page posts back.Now again when i try to delete the other row the selectedrowId is shown as
zero when debugging.But if i refresh the page or rebuild the solution, then the delete function works.What must be the problem?

protected void DeleteSelectedButton_OnClick(object sender, EventArgs e) { var shareProductId = _everestGridViewDetails.SelectedRowId; if (shareProductId > 0) { int deletecode = BusinessLayer.Core.ShareProducts.DeleteShareProduct(shareProductId.ToInt()); if (deletecode == 0) { //TaskFailed(<b>Task Failed</b>) ShowFailModal(string.Format(("Internal System Error!</b><br/><hr/><b>Task Failed!</b>"))); EverestGridDetailPla ...

Go to the complete details ...