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;
e.CellElement.Enabled = False
Now this appears to work at first, in that I can't click into the cell, But if I click on the cell next to it which is enabled, and use the arror key to move into the disabled cell, I can then Type directly into it, and it will allow this me to do that.I have also tried calling the controls' BringToFront() and SendToBack() methods at runtime with no luck.
I'm running:
RadControls for Winforms Q1 2007
VS 2005
.Net 2.0
Thanks for your help.