I am just starting into ADO.Net using Visual Basic .Net in a Windows application environment. I have been told that the DataGrid gives advantages over list boxes, etc however I can't seem to see why this is. For one thing, when I bind a DataTable to a DataGrid, I can't seem to hide any columns. I have looked over code examples and none seem to work. Also, when I bind a DataSet to a DataGrid, I receive a tree structure from which to choose tables, even if there is only one table. So far, the DataGrid just seems to be a complex tree structure view of table data, and that is not very helpful.
The real purpose of using the DataSet is to store tabular data and filter, relation, etc at run-time without requerying the database every time. In this way, I will end up getting the data I want as a view or single table would look, and want to hide certain fields depending on data retrieved.
First, would someone explain why you would use a DataGrid, and second would someone tell me if it is possible to hide columns in a DataGrid?
Thanks!
The real purpose of using the DataSet is to store tabular data and filter, relation, etc at run-time without requerying the database every time. In this way, I will end up getting the data I want as a view or single table would look, and want to hide certain fields depending on data retrieved.
First, would someone explain why you would use a DataGrid, and second would someone tell me if it is possible to hide columns in a DataGrid?
Thanks!