Wrox Programmer Forums
|
Pro VB 6 For 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
 
Old February 9th, 2005, 04:36 PM
Registered User
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to peace
Default MS DataGrid Component

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...

Thanks, Baris
 
Old February 9th, 2005, 05:29 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old February 15th, 2005, 05:55 PM
Registered User
 
Join Date: Sep 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to peace
Default

This helped a lot. Thank you very much for your suggestion, sorry I'm a bit late.





Similar Threads
Thread Thread Starter Forum Replies Last Post
checkboxes in datagrid component flash cs3 shrisangeeta Flash (all versions) 2 February 6th, 2008 03:51 PM
Please help, Update MS Access table from datagrid yzlin04 VB Databases Basics 1 August 6th, 2007 07:22 AM
Column Sorting/Formatting in MS Datagrid! ao7711 C# 1 July 13th, 2006 02:32 PM
DataGrid on Tab Control of MS Access 2000 MickeyMauz Access 1 April 17th, 2006 02:25 AM
Block some columns from update in MS DataGrid zee_ahmed2002 Pro VB 6 1 October 13th, 2004 07:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.