Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning 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 September 18th, 2006, 12:34 AM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Datagridview popualtion and retreival

Query:
1. I have a Windows form with a datagridview control having 6 coloumns(added at design time)

 1st is a checkbox column..
 2nd is a combo box coloumn
 3rd is a combo box coloumn
4 th is a text box coloumn
5 th is again a check box coloumn
6 is again a combo box..

I have to populate these.... and also take values from these (as these are editable by the user too) on OK clikck

I am able to add values in the comboboxes at runtime using

((DataGridViewComboBoxColumn)dataGridView1.Columns[firstColoumn]).Items.Add(chanName);

BUT....BUT ............BUT

Problem is,
1. I, dont get a selectedindex (Property) on combo box and checked/unchecked (Property) on check box....

2. Further I am not able to iterate through multiple rows to be added.........


Help needed ASAP

Thanks in Advance
Amber
 
Old October 17th, 2006, 05:58 PM
Authorized User
 
Join Date: Jun 2006
Posts: 73
Thanks: 1
Thanked 1 Time in 1 Post
Default

Well ! I didn't know you could output to a DataGridView in this way. I've only ever used the standard row and column arrangement, for retrieving recordsets. Sorry, I know it's probably no help.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Retreival of values from History in ASP pendemv Classic ASP Basics 3 December 16th, 2008 08:12 PM
DatagridView in C# velan C# 2005 0 June 8th, 2007 09:25 PM
datagridview thirumalai ASP.NET 1.0 and 1.1 Professional 1 April 7th, 2007 03:35 AM
DataGridView Sakkaw C# 2005 1 January 9th, 2007 12:06 PM
datagridview ScottSheck Visual Basic 2005 Basics 0 June 14th, 2006 11:07 AM





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