Click here to Skip to main content
15,356,720 members
Home / Discussions / C#
   

C#

 
AnswerRe: I should use what provider? Pin
Guillermo Rivero4-Jan-04 8:11
MemberGuillermo Rivero4-Jan-04 8:11 
GeneralRe: I should use what provider? Pin
Heath Stewart4-Jan-04 8:37
protectorHeath Stewart4-Jan-04 8:37 
AnswerRe: I should use what provider? Pin
Heath Stewart4-Jan-04 8:45
protectorHeath Stewart4-Jan-04 8:45 
QuestionHow to get list of Tables, Views and Procedure from Oracle database? Pin
god4k4-Jan-04 7:19
Membergod4k4-Jan-04 7:19 
AnswerRe: How to get list of Tables, Views and Procedure from Oracle database? Pin
Nick Parker4-Jan-04 7:52
protectorNick Parker4-Jan-04 7:52 
AnswerRe: How to get list of Tables, Views and Procedure from Oracle database? Pin
Guillermo Rivero4-Jan-04 7:57
MemberGuillermo Rivero4-Jan-04 7:57 
GeneralFeed CheckedListBox with data from XML Pin
dophka4-Jan-04 6:37
Memberdophka4-Jan-04 6:37 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart4-Jan-04 8:34
protectorHeath Stewart4-Jan-04 8:34 
First of all, design your XML document to reflect alternatives which are more like siblings. Because you have a fragment like:
<items>
  <item>
    <id>1</id>
    <post_date>2004-01-03T00:00:00</post_date>
    <!-- and the rest -- >
  </item>
  <item>
    <id>2</id>
    <post_date>2004-01-03T01:00:00</post_date>
    <!-- and the rest -- >
  </item>
</items>
This implies that each item should be a separate row. This isn't absolute, but common. If you design your document like this, you could actually use DataSet.ReadXml and create a DataSet which is easily bindable to a CheckedListBox.

If you want to use your schema that you posted, you'll have to parse the XML document manually and create an IList or IListSource implementation. The easiest way would be to use an ArrayList, which implements IList. You can then use this object with the CheckedListBox.DataBindings property (if memory serves me correctly), or enumerate the list and add each item to the CheckedListBox.Items property. If you use the latter method, you can forego the ArrayList and just add the different XML elements to the CheckedListBox.Items property in the first place.

For information on multi-column CheckedListBoxes, see the CheckedListBox.MultiColumn property documentation, which inherits from the ListBox control class.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Feed CheckedListBox with data from XML Pin
dophka4-Jan-04 8:46
Memberdophka4-Jan-04 8:46 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart4-Jan-04 8:52
protectorHeath Stewart4-Jan-04 8:52 
GeneralRe: Feed CheckedListBox with data from XML Pin
dophka4-Jan-04 9:07
Memberdophka4-Jan-04 9:07 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart4-Jan-04 9:11
protectorHeath Stewart4-Jan-04 9:11 
GeneralRe: Feed CheckedListBox with data from XML Pin
dophka4-Jan-04 10:25
Memberdophka4-Jan-04 10:25 
GeneralRe: Feed CheckedListBox with data from XML Pin
Heath Stewart5-Jan-04 6:05
protectorHeath Stewart5-Jan-04 6:05 
Generalhelp me in finding objective and multiple choice questions Pin
imran_rafique4-Jan-04 4:29
Memberimran_rafique4-Jan-04 4:29 
GeneralRe: help me in finding objective and multiple choice questions Pin
Heath Stewart4-Jan-04 8:23
protectorHeath Stewart4-Jan-04 8:23 
GeneralSending mail using SMTP Pin
gr8tushar4-Jan-04 1:47
Membergr8tushar4-Jan-04 1:47 
GeneralRe: Sending mail using SMTP Pin
Mike Ellison4-Jan-04 3:11
MemberMike Ellison4-Jan-04 3:11 
GeneralRe: Sending mail using SMTP Pin
gr8tushar4-Jan-04 3:43
Membergr8tushar4-Jan-04 3:43 
GeneralRe: Sending mail using SMTP Pin
Broken God4-Jan-04 5:59
MemberBroken God4-Jan-04 5:59 
GeneralRe: Sending mail using SMTP Pin
Heath Stewart4-Jan-04 8:18
protectorHeath Stewart4-Jan-04 8:18 
GeneralRe: Sending mail using SMTP Pin
Mazdak4-Jan-04 5:08
MemberMazdak4-Jan-04 5:08 
GeneralRe: Sending mail using SMTP Pin
Heath Stewart4-Jan-04 8:21
protectorHeath Stewart4-Jan-04 8:21 
GeneralPanel + Keypress Pin
Heroz4-Jan-04 0:26
MemberHeroz4-Jan-04 0:26 
GeneralRe: Panel + Keypress Pin
Mike Ellison4-Jan-04 3:14
MemberMike Ellison4-Jan-04 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.