| |

VerySource

 Forgot password?
 Register
Search
View: 635|Reply: 2

C # winform implements listBox to display all the information of a column field in the database, online,

[Copy link]

3

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-3-14 13:30:01
| Show all posts |Read mode
C # winform implements listBox to display all the information of a column field in the database, online
Reply

Use magic Report

1

Threads

11

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-6-11 11:00:02
| Show all posts
It is not enough to directly bind this field. Or find this field and put it in the datatable. Bind this datatable
Reply

Use magic Report

0

Threads

8

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-6-17 14:00:01
| Show all posts
Check out this field and put it in the datatable, I put it in the dataset, it can be pulled, and then bound

this.listBox1.DataSource = ds.Tables[0];
this.listBox1.ValueMember = "Field name 1";//For example ID
this.listBox1.DisplayMember = "Field name 2";//For example Name
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list