请问,如何像Additional下StringGrid控件添加字啊?
   比如一个表格有姓名 性别 年龄什么,请问如何把这些东西添上去?  还有就是如何像表里添加数值??
 请高手赐教

解决方案 »

  1.   

    stringgrid1.rowcount :=100;//一共有100行  for i := 0 to 10 do
      begin
        stringGrid1.Cells[2,i]:='ss';  //给表格里面添加数据
      end;
      

  2.   

    StringGrid1.Cell[1,0]:="姓名";
    StringGrid1.Cell[2,0]:="性别";
    StringGrid1.Cell[3,0]:="年龄";
    ......
      

  3.   

    Select * from NBILL
      where MF_Id  = :MF_Id
      and (Packtype = :Packtype or :ignorePack = '1')
      and (agent_id = :agent_id or :ignore='1' )
      

  4.   

    为什么StringGrid?对表里添加数值用DBGrid方便一些。