locked
displaying the data in data control RRS feed

  • Question

  • Hi all,

    Which is the better window form data control for me to display all the data from the database? I wanted to use the combobox but it only display the selected column. Can anyone help me?

    Thanks

    Tuesday, July 21, 2009 6:58 AM

Answers

  • hello Lil ,
     You can display data in listbox or datagridview.
     But ListBox was never intended to display tabular data, and datagridview is more manageable and easy to use.
    • Marked as answer by LiL_Is Wednesday, July 22, 2009 1:23 AM
    Tuesday, July 21, 2009 10:20 AM

All replies

  • Try to use the DataGridView.


    Good Luck.

    VB.NET Programmer
    Tuesday, July 21, 2009 7:09 AM
  • Hi KET_LORENZO,

    Is there any beside datagridview control? I want to display the data in combobox but it only display the selected item. Is there other way that the combobox can display all the data from the database.

    Thanks.
    Tuesday, July 21, 2009 7:53 AM
  • Hi KET_LORENZO,

    Lets say i have a table name tblCust and contain 4 columns(id,name,tel,address,) but i want to display only 2 out of 4 columns. So is there some solutions??

    Thanks
    Tuesday, July 21, 2009 8:53 AM
  • hello Lil ,
     You can display data in listbox or datagridview.
     But ListBox was never intended to display tabular data, and datagridview is more manageable and easy to use.
    • Marked as answer by LiL_Is Wednesday, July 22, 2009 1:23 AM
    Tuesday, July 21, 2009 10:20 AM