# Re: DBGrid 的使用(救人喔!)

Posted by SENDY on September 01, 1998 at 16:26:57:

In Reply to: Re: DBGrid 的使用(救人喔!) posted by savage on August 31, 1998 at 20:26:30:

: ::当然可以!LIKE THIS：
: 1: 首先,把DBGRID的DATAMODE属性改为
: additem方式
: 2:,把数据抓到一个 RECORDSET 中,
: set recordset=
: database.openrecordset(strsql,opendy-
: naset);
: 3:再逐条 RECORDSET 添进 DBGRID,
: while not recordset.eof
: dbgrid.additem recordset!fieldname1 _
: & vbtab & recordset!fieldname2
: recordset.movenext
: wend

Follow Ups: