Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bind CheckedListBox
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01449648
Message ID:
01449655
Views:
24
I dunno - I'm not seeing a DataSouce prop in Intellisense.



>OK, my memory was really bad...
>
>Here...I just ran this code...
>
>
>DataTable dt = new DataTable();
>
>dt.TableName = "dt";
>dt.Columns.Add("Name", typeof(System.String));
>dt.Columns.Add("Salary", typeof(System.Decimal));
>dt.Rows.Add("Kevin Goff", 100000);
>dt.Rows.Add("Steve Goff", 900000);
>dt.Rows.Add("Gwen Goff", 100000);
>DataSet ds = new DataSet();
>ds.Tables.Add(dt);
>
>this.checkedListBox1.DataSource = ds;
>this.checkedListBox1.DisplayMember = "dt.Name";
>
>
>Worked fine....here's what I had forgotten...to determine which ones were checked, you have to iterate through the checkedlistbox
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform