Extra column in Datagrid

Nov 21, 2008 at 11:39 PM

I am using WPF datagrid in my project.
I wanted to know how to get rid of the extra column the data grid adds.
I use the same datagrid to display a lot of results in differnet scenarios.
It may have one to n columns depending on the scenario. I dynamically add the columns depending on the scenario.
The issue is when there are less number of columns datagrid displays an additonal column.
The frustrating part is on the click of the item area in the additional area the column doesnt get selected.

Can any one tell me how to work around this issue. I know the * approcah but it has its own issues

Any help is highly appreciated