.NETGURU
how to bind data to windows checklistbox
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.windowsforms.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...

Maddy Balakrishnan via .Net Guru (VIP)
(Type your message here)

--------------------------------
From: Maddy Balakrishnan

Hi,
I have the same problem but i'm using windows checklistbox in vs2003.net. But i can't find a properties datasource, displaymember.. as we have in combobox.... pls help me .. thanks in advance..

-----------------------
Posted by a user from .Net Guru (http://www.dot-net-guru.com/)

<Id>bvViG2gs/keAD7E2cCBvXg==</Id>
Reply to this message...
 
    
Sijin Joseph
Very strange even thought the documentation and intellisense and even
the propertygrid shows no datasource property, there is no compile time
error when i set the datasource and it actually works in a small sample
app i tried.

http://www.windowsforms.net/Forums/ShowPost.aspx?tabIndex=1&tabId=41&PostID=16490
http://www.codenotes.com/articles/articleAction.aspx?articleID=2148

Maybe the databinding in the CheckedListBox control is screwed, but it
definitely works, it has a DataSource property and a DisplayMember and
ValueMember prop as well.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

Maddy Balakrishnan via .Net Guru wrote:
[Original message clipped]

Reply to this message...
 
    
sasi (VIP)
Checkedlistbox has a bug with databinding.

If you bind a datatable to checkedlistbox, check few items and add a new row
to the datatable, all the checks would be cleared. microsoft has acknowledged
this as a bug and that is probably the reason why they took datasource
property out of vs.net 2003 and didnt have guts to tell developers about it
prior to release of the vs.net 2003.

There is a workaround to re check all the checked items after you add a new
row to the data table.

"Sijin Joseph" wrote:

[Original message clipped]

Reply to this message...
 
 
System.Windows.Forms.CheckedListBox




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification