急求前辈解答!该如何解决

急求前辈解答!!!!!!
可以在BCB6.0中将StringGrid的列用动态的处理效果吗?
我在用StringGrid显示EXCEL表中的数据时,为什么列的数据是系统一开始的数据
我在程序中用的是这个StringGrid->Cells[++col][row]可是改变不了这个列的数据!!!!!!!!!
请前辈多多指教!!!!!谢谢!!
解决后马上结贴!!!!!!

------解决方案--------------------
“StringGrid->Cells[++col][row]”

StringGrid->Cells[++col][row] = "AAA"; 赋值
你给每个单元格赋值了吗?


贴出你的代码看看

------解决方案--------------------
//给你个例子
C/C++ code

void __fastcall TForm1::Button2Click(TObject *Sender)
{
  for(int i=1 ;i<StringGrid1->ColCount;i++)
  {
    for(int j=1;j<StringGrid1->RowCount;j++)
    {
      StringGrid1->Cells[i][j] = IntToStr(i)+" : "+IntToStr(j) ;
    }
  }
}