{
bool editable = (rowState & (DataControlRowState.Edit | DataControlRowState.Insert)) != 0;
CheckBox box = new CheckBox ();
- box.Enabled = editable && !ReadOnly;
- box.ToolTip = HeaderText;
+ box.Enabled = editable && !ReadOnly;\r
+ if (editable)
+ box.ToolTip = HeaderText;
box.Text = Text;
cell.Controls.Add (box);
}