如何在StringGrid中插入一行
为什么用 StringGrid1-> Cols[1]-> Insert(2, "hellow world! ");会报错
[解决办法]
grit-> ViewData-> DataController-> AppendRecord();
grit-> ViewData-> Records[0]-> Values[0] = "name ";
grit-> ViewData-> Records[0]-> Values[1] = "age ";
grit-> ViewData-> DataController-> Post();
[解决办法]
StringGrid1-> ViewData-> DataController-> AppendRecord();
StringGrid1-> ViewData-> Records[0]-> Values[0] = "2 ";
StringGrid1-> ViewData-> Records[0]-> Values[1] = "Hello World! ";
StringGrid1-> ViewData-> DataController-> Post();