Thursday, 15 April 2010

wpf - Populating GridVIewComboBox with Enum -


I have a grid when I load a populated grid from "Active Records". Each column populates properly except the EEEN column, the numeric column is empty. Cambodia I can click here and it is populated with anom.

If I can get some help setting an enum to display correctly, please

   & Lt; / DataTemplate & gt; & Lt; / Telerik: GridViewDataColumn.CellEditTemplate & gt; & Lt; / Telerik: GridViewDataColumn & gt; & Lt; ObjectDataProvider x: Key = "MyEnumDataProvider" NamesName = "GateValues" Object Type = "{x: Type System: Enum}" & gt; & Lt; ObjectDataProvider.MethodParameters & gt; & Lt; X: type type name = "account: insurance type" & gt; & Lt; / X: type & gt; & Lt; /ObjectDataProvider.MethodParameters> & Lt; / ObjectDataProvider & gt;  

EnumToArrayConverter

populates tariff columns but the anonymous column remains empty

The following code object will resolve by using the data provider

  & lt; ObjectDataProvider MethodName = "GetValues" object type = "{x: type sys: enum}" x: key = "enumDataProvider" & gt; & Lt; ObjectDataProvider.MethodParameters & gt; & Lt; X: type type name = "local: some element" /> & Lt; /ObjectDataProvider.MethodParameters>  

Then use the data column and override its template and make a combo box in it and divide the combo box in such a way

 < Code> & lt; Telerik: GridViewDataColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; Combo box item source = "{binding source = {static resource anonymity provider}}" selected itam = "{choosing binnename}" /> & Lt; / DataTemplate & gt; & Lt; / Telerik: GridViewDataColumn.CellTemplate & gt;  

No comments:

Post a Comment