I am trying to use a DataGrid whose first column is a ComboxBox. This ComboxBox has a hardcoded static values, possible values are: Employee, Contractor, Supplier
How can I show some static values in the DataGrid without binding to a DataSource.
I am new to WPF so more detailed explanation would help.
if you mean the wpf toolkit datagrid, you could do it like so:
in this the items displayed have a property called RoleProperty. you would also need an xnl namespace defintion at the top of your xaml (with the rest of them like:
to let you include the system namespace. (to get access to the Strings)