Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To 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 May 5th, 2004, 12:15 AM
Registered User
 
Join Date: May 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Blank row in Data Bound ComboBox

I want to show a blank row in the drop down list of the ComboBox (which is bound to a DataSet).

PB
 
Old May 5th, 2004, 01:33 PM
Registered User
 
Join Date: May 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have managed to work that out, add a blank DataRow to the underlying DataSet.

'Add a blank DataRow to the DataSet.
Dim DR As DataRow
DR = myDataSet.Tables(0).NewRow
DR(1) = ""
myDataSet.Tables(0).Rows.Add(DR)


http://home.iprimus.com.au/pankajbanga





Similar Threads
Thread Thread Starter Forum Replies Last Post
Bound ComboBox Database Query dougontour VB.NET 2002/2003 Basics 5 April 20th, 2005 02:11 AM
Need help with bound data kcrompt2 Classic ASP Professional 0 February 9th, 2005 12:37 AM
Data Bound ComboBox joblot VB How-To 0 May 5th, 2004 12:18 AM





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