Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 4th, 2004, 10:31 AM
Registered User
 
Join Date: Apr 2004
Location: , , Singapore.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Listbox in Datagird?

Hi, can anyone help me pls...

Question : How to make a listbox in Datagrid field?
Please view this page to understand more
http://www.geocities.com/slash_programmer/dbgrid.htm

Many thanks for any advise...

:)
Reply With Quote
  #2 (permalink)  
Old April 4th, 2004, 10:53 AM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

Is this what you're looking for?
http://www.geekdork.com/samples/complexDatagrid.aspx

If not, can you elaborate a bit about your problem instead of "letting a page do the talking"? Did you also post this on Dev Shed?

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #3 (permalink)  
Old April 5th, 2004, 07:59 AM
Registered User
 
Join Date: Apr 2004
Location: , , Singapore.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Thanks for ur reply...

The website u given me is for ASP application right...
I think u got the idea of my problem but my problem is on the Visual basic datagrid...

I need to do a dropdown list in the Data bound grid control and is using visual basic application..
Can u pls provide me examples if u have any..

Please give me your advise.. thanks..

Did you also post this on Dev Shed? --->>> Yes i did, but no one reply wif my question.. i think is becos of my question is not in details.. :(
Reply With Quote
  #4 (permalink)  
Old April 5th, 2004, 08:55 AM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Ah, I see, it's for a Windows Forms application...

Did you try Google? I was able to find a couple (probably useful) articles and tutorials about this subject in a few seconds....

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Reply With Quote
  #5 (permalink)  
Old April 5th, 2004, 11:48 PM
Registered User
 
Join Date: Apr 2004
Location: , , Singapore.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Thanks for ur info, i founded some useful website and examples using googles...

At first i was using yahoo.. but cannot find any useful web but thanks for ur info after all...

1 more thing is that i only found those examples for VB.Net but not for VB 6... the function izzit for VB.Net only??

Thanks again for ur advise :)
Reply With Quote
  #6 (permalink)  
Old April 29th, 2007, 06:10 AM
Registered User
 
Join Date: Feb 2007
Location: Faridabad, Haryana, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,
I am facing the kind of same problem
I had been to the website as mentioned above.But I have a simpler problem(though not able to find the answer).
I wanted to put a listbox in datagrid and the value in listbox should be a simple count from 0 to 10.
The code


    <asp:GridView ID="gd1" runat="server" Style="z-index: 100; left: 0px; position: absolute;
            top: 16px" Width="704px" BackColor="#FFC0FF">
            <Columns>
            <asp:TemplateField HeaderText="Quantity">
            <ItemTemplate>
            <asp:ListBox ID="qty" runat="server" Width="75px" Height="30px" />
            </ItemTemplate>
            </asp:TemplateField>
            </Columns>
        </asp:GridView>

Now, the problem is I want to set a maximum quanitity to 10. But I dont know how to bid the listbox in datagrid from count 0 to 10. and evenif somehow I manage to do that, how can I retrieve the value.
what event shall I use.
May I put a button after the value is set or can we use IndexChange event , if it is possible. I might sound a bit confused, the reason is I am not sure about how to manage the event on listbox which is in datagrid


Please Help!!
Regards
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
datagird to database hcmdien ASP.NET 1.x and 2.0 Application Design 0 August 19th, 2007 05:32 AM
multiple Listbox values in another listbox terryv Excel VBA 0 June 27th, 2007 07:01 AM
Deleting record from Datagird with Delete Button elygp ASP.NET 1.0 and 1.1 Professional 1 May 1st, 2007 03:27 PM
Dropdownlist within datagird SIONEDWARDS55 ASP.NET 1.0 and 1.1 Basics 2 February 11th, 2005 05:09 AM
I'm back :) Listbox var from listbox MichaelTJ .NET Web Services 2 October 21st, 2003 07:06 PM



All times are GMT -4. The time now is 05:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.