I have a DataGrid Control which is bound to a SQL Table.
The XAML Code is:
I have created an attached property for the DataGrid that lets you do this in XAML: