且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用数据库数据标记一些在Windows窗体中检查的checklistbox项目

更新时间:2023-02-03 23:19:56

您需要编写一个SELECT语句来从数据库中提取数据。然后循环遍历数据,可能使用DataReader,并设置相应的复选框。
You need to write a SELECT statement to pull the data from the database. Then you loop through your data, probably using a DataReader, and set the appropriate checkboxes.