PC Review


Reply
Thread Tools Rate Thread

CheckedListBox Basics

 
 
kifaro
Guest
Posts: n/a
 
      18th May 2004

Please excuse me if these are really basic questions but I cannot find
the documentation I need to be able to accomplish this.

I have a checked listbox I am filling from a ds:

mysql = "select id,name from company where supportedvendor=1 and
accessmfg=1 order by name"
ds = SqlHelper.ExecuteDataset(gsconnection,
CommandType.Text, mysql)

Me.clVendors.DataSource = ds.Tables(0)
Me.clVendors.DisplayMember = "name"
Me.clVendors.ValueMember = "id"

then I have
Dim dsVendor As DataSet
mysql = "select vendorId from quotevendor where
Proposalnum=" & iProposalNum & "and revision=" & iRevision
dsVendor = SqlHelper.ExecuteDataset(gsconnection,
CommandType.Text, mysql)

This dataset lists which items are to be checked. The vendorID field
corresponds to the ID field.

I know how to get it on the way out using the CheckedItems
collection!!

Thanks,
Aaron
 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      19th May 2004
Hi Kifaro,

I think you have to add the items to be checked to your datatable.

I assume I can do it when it was my problem, however never did this.

I would ask this when I was you in the newsgroup

Adonet
<news://msnews.microsoft.com/microsoft.public.dotnet.framework.adonet>

Web interface:

<http://communities2.microsoft.com/co...s/?dg=microsof
t.public.dotnet.framework.adonet>


I hope this helps a little bit?

Cor


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CheckedListBox s Microsoft C# .NET 2 23rd May 2006 01:31 PM
CheckedListBox Vann Microsoft VB .NET 3 29th Sep 2004 03:53 PM
CheckedListBox ... Subramanian Iyer.NET Microsoft Dot NET Framework Forms 1 2nd Aug 2003 01:02 PM
Re: CheckedListBox David Waz... Microsoft Dot NET 0 6th Jul 2003 07:07 PM
Re: CheckedListBox ClayB [Syncfusion] Microsoft Dot NET 0 6th Jul 2003 12:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:13 PM.