Oh Thanks. It seems simple but ok, I am interested with the table style. Is this something you can do at design level, in coding/run time. Do you have some codings pls. Thanks again.
newvbguy
Hi
The way I populate a datagrid:
1- Create a dataset and a dataview.
2 - Get the database.
3 - Fill the dataset with the data from the database table.
4 - Set the dataview table to the dataset.
5 - Set the datasource of the datagrid to the dataview.
6 - Set the table style of the datagrid to show what you want to show.
- The column width you can set it up when setting the table style.
- If you want to filter the data, filter the dataview.
Hope it helps
Reputation Points: 13
Solved Threads: 3
Junior Poster in Training
Offline 71 posts
since Mar 2005