Pro VB 6For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Hi,
I have a problem with filling MS data grid. There is a private type recordset in the application and I can't just say
"grid.DataSource=Recordset"
Can I insert data to MS DataGrid component cell by cell?
There is a function which fills grid automatically but it gets a type of "control" paramater. What is a control variable?
I would be very happy if you help...
If your grid is not bound to any recorset, I suggest to use the MS FlexGrid instead, that is more.. flexible. To fill a cell, use grd.TextMatrix(row, colum) = "any text" To add a whole row,
grd.AddRow "col1" & vbTab "col2" & vbtab ...
Marco