Click here to Skip to main content
15,894,294 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can we fill Data from a table field to ListView..
Just one field of a table....
Posted
Updated 7-Jun-11 1:19am
v2

Hope this[^] will guide you.
 
Share this answer
 
get the all details from table......
listBox1.DataSource = objDt; // object of DataTable class or any other collection
listBox1.DisplayMember = "fieldName"; //column Name which contain Text to Display
listBox1.ValueMember = "valueName"; // column name which contains Value to bind

done.......
 
Share this answer
 
Take your ListView control to the next level. Use A Much Easier to Use ListView[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900