# 试试看这样.....

Posted by Jerry on October 02, 1998 at 11:04:56:

In Reply to: 请教各位高手！如何在DBGrid或MSFlexGrid某栏加入CheckBox??? posted by Devi Tang on October 02, 1998 at 06:55:44:

:
: 请教各位高手！如何在DBGrid或MSFlexGrid某栏加入CheckBox???
您是要动态产生Checkbox还是只要在MSFlexGrid栏加入就好? 如果是后者, 在设计阶段把Checkbox直接拉到
MSFlexGrid上不就行了吗? 如果是要动态的话不妨试试:

With Checkbox
.Top = grid.CellTop + grid.Top
.Left = grid.CellLeft + grid.Left
.Width = grid.CellWidth
.Height=grid.CellHeight
End With

这样就可以把Checkbox放在指定的栏位内
只是要注意Height不要设得太小免得字看不清楚
不知道您要的是不是这样......

Follow Ups: