Sir,
I couldn't update the value of a cell that I clicked last.
I expect a quick reply.
Thanks in advance
Retheesh
Here I include the code
I couldn't update the value of a cell that I clicked last.
I expect a quick reply.
Thanks in advance
Retheesh
Here I include the code
private void btnUpdateAll_Click(object sender, EventArgs e)
{
GridViewInfo gvi = rgHeadLine.MasterGridViewInfo;
int Rowcount = gvi.Rows.Count;
for (int i = 0; i < Rowcount; i++)
{
GridViewRowInfo gvri = gvi.Rows[i];
bool publish = (bool)gvri.Cells["Publish"].Value;
bool Active = (bool)gvri.Cells["Active"].Value;
int HeadlineID = Convert.ToInt32(gvri.Cells["HeadLineID"].Value);
HeadLines myHeadline = new HeadLines();
myHeadline.Publish = publish;
myHeadline.Active = Active;
myHeadline.UpdatedBy = "Mahesh";
int RecordAffected = myHeadline.UpdateHeadLine(HeadlineID);
}
}