Hi,
If you use dataBound, you can do it like this: Bound the some data with the ListBox. This will help you display the data of a specific column in the ListBox.
private void Form2_Load(object sender, EventArgs e)
DataTable dt1 = new DataTable();
"col1");
"col2");
"aa", "11");
"bb", "22");
"aaa", "33");
"col1";
"col2";
If unbound, you need to use loop to add all the cells�data to the items of the ListBox.
Best regards,
Ling Wang
Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.