ARTICLE

Adding & Retrieving items from listbox and check list box

Posted by Gautam Shrestha Articles | Windows Controls C# June 02, 2005
The attached source code shows how to add and retrieve items of Windows Forms ListBox and CheckListBox controls.
Reader Level:
Download Files:
 

Here is the source for C# Programmer (Beginners). It is about windows controls.

Adding and Retrieving items from listbox and check list box using with or without database.

Login to add your contents and source code to this article
post comment
     

Dear Gautam,

The aforesaid sample code for retriving items from the checked list box shows retrivied items as " System.Data.DataRowView"  not the same as the checked items.

Plz see and advise.

Posted by Niaj Khan Sep 11, 2010

Thanks alot but i want to know how to make the value of the checklistbox item equals the primarykey of that tabel and store the primarykey (value of items) in the another table? for example ( the users tabel (id,username,password) , the privileges tabel ( pri_num,privilege),the joining tabel user_privileges (id,pri_num) .what i want is that the privilege is viewed in checklistbox and after that the value of it pri_num is stored in user_privileges tabel)

thank you for your cooprative

Posted by Mesha May 25, 2010
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Join a Chapter