To do that, create a simple View: How can I pass cell value to converter without knowing propertyname or column name. For cell coloring using converter, refer to below code XAML Copy Code. If I add lumnname in style, then converter fires and cell background changes in XamDataGrid. The issue is, my converter is not firing when Path = DataItem in style. Here, the cell style is said to be an advanced style because: the element DataGridCell cannot directly set properties such as Padding and Height, but needs to use the ControlTemplate property to reconstruct its built-in elements. Private void xamDailyAudit_FieldLayoutInitialized(object sender, .FieldLayoutInitializedEventArgs e)įoreach (var field in e.FieldLayout.Fields)į = xamDailyAudit.Resources as Style I do not know the columns of the datatable. XamDataGrid is bounded to DataTable.DefaultView iva view model. However, I do not know the column names of the DataSource (Datatable) bounded to the grid. I have a datagrid with a Cornsilk background color alteranating with LightGreen depending on the content of datetime cell. My goal is to pass value to every cell in xamdatagrid to Converter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |