Wrox Programmer Forums
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics 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 January 2nd, 2007, 12:53 AM
Registered User
 
Join Date: Dec 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default what control to use

The control I need to use have to be displayed at run time and should have up to 6 rows and 4 columns. I need to load data in 3 columns from a table but one column(cell) in each row has to be loaded by a text box user input and displayed. After the user input for 6th row is done data need to be updated in a new table because rows may be deleted at run time. Can someone tell me which control to use. and how to load the data in 3 columns from the table and 4th column data from a text box. If I need to use datagrid I know how to load the data in datagrid but I dont know how to load the data from user input text box in a column of the datagrid.


js
 
Old January 2nd, 2007, 08:24 AM
Authorized User
 
Join Date: Nov 2006
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ef1196
Default

If you use a DataGrid you will need to start your application with the datagrid UNBOUND and add the information manually.

1.) First, retrieve your data.
2.) Next, add the data manually:


DataGridView1.Rows.Add()
DataGridView1.Rows(new row # here).Cells(0).Value = 'your table data here'
DataGridView1.Rows(new row # here).Cells(1).Value = 'your table data here'
DataGridView1.Rows(new row # here).Cells(2).Value = 'your table data here'
DataGridView1.Rows(new row # here).Cells(3).Value = 'your textbox data here'
DataGridView1.Rows(new row # here).Cells(4).Value = 'your textbox data here'
DataGridView1.Rows(new row # here).Cells(5).Value = 'your textbox data here'





Best Regards,
Earl Francis





Similar Threads
Thread Thread Starter Forum Replies Last Post
The control that triggered the UpdatePanel control Kika ASP.NET 2.0 Professional 0 January 17th, 2008 01:13 PM
How to put a button control in a GridView control ryan.webb ASP.NET 2.0 Basics 2 December 28th, 2007 05:26 AM
Can't move focus to control <control scptech Access VBA 8 October 26th, 2007 12:16 PM
Help! Custom Server Control using User Control diehard ASP.NET 1.0 and 1.1 Professional 2 January 4th, 2006 12:33 PM
Help with control initialization in user control mike_remember ASP.NET 1.0 and 1.1 Professional 7 December 19th, 2005 11:08 AM





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