datagrid in wpf

Jul 30, 2011 at 5:19 AM

Hi all,

I am required to create data grid dynamically. On some condition the datagrid will have controls as textbox / combobox / textblock. 

something like:

Column1  Column2   Column3

value1     Combobox  value2

value3     textbox       value4

Please suggest some idea to create and add controls dynamically. As this datagrid should be created in xaml.cs file and all required controls can be added in code behind only.

It is not necessary to use datagrid only. Please suggest if there is other way around.

Regards.