Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > displaying the data in data control
 

displaying the data in data control

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

LiL_Is  Tuesday, July 21, 2009 6:58 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 byLiL_Is Wednesday, July 22, 2009 1:23 AM
  •  
NareshG  Tuesday, July 21, 2009 10:20 AM
Try to use the DataGridView.


Good Luck.

VB.NET Programmer
KET_LORENZO  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.
LiL_Is  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
LiL_Is  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 byLiL_Is Wednesday, July 22, 2009 1:23 AM
  •  
NareshG  Tuesday, July 21, 2009 10:20 AM

You can use google to search for other answers

Custom Search

More Threads

• PictureBox and DataBinding to Image
• disable SHIFT-TAB on the DataGrid??(C#)
• DataGridView bug and unhandled exception
• Grouping Question??
• Create DataGridView in a DataGirdViewColumn
• Converting database information to code
• NumericUpDown Size
• Populating DataGridView ComboBox
• Possible bug regarding ListChanged Event from a BindingSource
• Tableadapter update command partial class parameter