hi Friends
i have Problem To Update in GridView, i Think my Update code is Problem i as Follows:
else if (btncategory.Text == "Update")
{
Hashtable hstbl = new Hashtable();
DataGridViewRow row = GvCategory.Rows[indexRow];
hstbl.Add("@status", "update");
hstbl.Add("@CategoryId", Convert.ToInt32(row.Cells[0].Value));
hstbl.Add("@updatedby", Global.UserID);
List iList = new List();
foreach(var item in clbbrand.CheckedItems)
{
hstbl.Add("@BrandId",row.Cells[1].Value);
}
Int64 dt = DataAccessLayer.ExecuteCommand_RowsAffected("Category_Mst_sp", hstbl);
if (dt >= 0)
{
MessageBox.Show("Category Details Updated Sucessfully", "Category Alert");
txtcategory.Text = string.Empty;
LoadCategory();
btncategory.Text = "SAVE";
}
else
{
MessageBox.Show("Already Entered the Category");
}
}
If Anyone tell how i will modified code the sele cted list Item To be update on My table


Ramesh PalanivelRank #372 · 6.8K reputationPosted Aug 29, 2017, 2:27 AM EDT
Zakir AhamedRank #1,545 · 1K reputationPosted Aug 29, 2017, 3:46 AM EDT
Ramesh PalanivelRank #372 · 6.8K reputationPosted Aug 29, 2017, 3:50 AM EDT
Zakir AhamedRank #1,545 · 1K reputationPosted Aug 29, 2017, 6:07 AM EDT