Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
How to dynamically display columns of xamdatagrid whose itemsource is datatable ?
posted

I want to use xamDataGrid whose itemsource is datatable, but instead of displaying default columns of datatable inside xamDataGrid, I want to customise them before displaying in xamDataGrid. For example for first column of datatable i want to use textbox, but for the rest of datatable's columns I want to use comboboxes. I don't want to hard code fields inside xaml because in my scenario no of fields (columns) may vary each time, so i don't have information about them at design time. I also want proper binding of fields as well so that i could save changes back to datatable. If anybody could help me with example ?