tags:

views:

329

answers:

2

Hi,

I am adding dynamic columns in silverlight data grid.And I want to assign width for columns such a way that it covers entire grid width.

I tried this solution mentioned but still it is adding one extra column and than splits remaining columns in same width.

http://stackoverflow.com/questions/894991/increase-columns-width-in-silverlight-datagrid-to-fill-whole-dg-width

Any help on this will be appreciated.

Thanks.

A: 

I've done this with a Custom Attached Property. Code is here.

Michael S. Scherotter
A: 

Add Width="*" in the last column of the datagrid.

sona