StringGrid,该如何解决

StringGrid
我在CB stringgrid的selectcell中这样写道 
  if (StringGrid1->Row == 1)
  {
  CanSelect = True;
  }
为什么还是不能编辑 options中的goediting何gorowselect全部是false

------解决方案--------------------
C/C++ code

void __fastcall TForm1::StringGrid1SelectCell(TObject *Sender,gLis

------解决方案--------------------
CanSelect与Edit有什么关系。。。为什么要写在这里
------解决方案--------------------
C/C++ code

//---------------------------------------
void __fastcall TForm1::StringGrid1SelectCell(TObject *Sender, int ACol,
      int ARow, bool &CanSelect)
{
    if (ARow == 1) {
       StringGrid1->Options << goEditing;
    }else  StringGrid1->Options >> goEditing;

}

------解决方案--------------------
if (StringGrid1->Row == 1)
{
CanSelect = True;

StringGrid1->Options << goEditing;
}