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);
}
}
void grdSearchResults_ValueChanging(object sender, ValueChangingEventArgs e)
{
GridCellBoundColumnElement cell = sender as GridCellBoundColumnElement;
MyObj obj = cell.RowInfo.DataBoundItem as MyObj;