Skip to content

Commit

Permalink
Merge pull request #420 from ismaelTartola/issue#419-Product-grid-del…
Browse files Browse the repository at this point in the history
…ete-problem-fixed

Changed-var-key-value-reference
  • Loading branch information
WillStrohl authored Oct 21, 2022
2 parents 08d0740 + ccf322f commit 8e912f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ protected void btnAdd_Click(object sender, EventArgs e)
protected void rgProducts_OnDeleteCommand(object sender, GridViewDeleteEventArgs e)
{
var bvinsList = GetProductBvins();
var key = int.Parse(rgProducts.DataKeys[e.RowIndex].ToString(), NumberStyles.Integer);
var key = (int)rgProducts.DataKeys[e.RowIndex].Value;
bvinsList.Remove(key);
SaveItems(bvinsList);
LoadItems(GetProducts(bvinsList));
Expand Down

0 comments on commit 8e912f5

Please sign in to comment.