Using datagridTableStyles on grids that are populated to a dataset with multiple relationshi
Greetings,
I have a data grid that is populated by a data set. This particular data set contains three tables (one parent and two children) that have relations set up. I'm trying to remove a column from each table when it is displayed on the grid. Removing the column for the parent table wasn't a problem. It is trying to remove the columns for the child tables that is making me scratch my head.
I was thinking it was a simple matter of using similar code for each child table. However, this does not work. I'm not sure the tablestyles collection contains the child table names. (Not sure how to check this) Also, I'm assuming I have to create new datagridstyles for each of the new table styles. However, in debug mode these child datagridstyles show as Nothing in the locals window (The parent shows it is a datagridstyle in the Locals Window).
It can't be that difficult to create table styles for the child tables. I feel I'm missing something simple, but there isn't much written on this subject in MSDN or other websites. It is mostly articles on how to deal with one table on the grid and add controls to the grid. Any assistance would be appreciated.
Thanks

