Silverlight DataGrid TemplateColumn adding problem with ComboBox -


I am facing a lot of problem with this problem. I have created a datagreat and it has Datatapplet column. Here for xml

  & lt; Data: DataGrid x: name = "Portgrade" height = "124" margin = "23,0,17,2" vertical alignment = "bottom" itemsource = "{port ports grid data, mode = two}" auto generate column = " Wrong "selectionmode =" single "& gt; & Lt; Data: DataGrid.Columns & gt; & Lt; Data: DataGridTextColumn Header = "Specific Port / Range" CanUserResize = "False" Width = "130" Binding = "{Binding Port}" /> & Lt; Data: Datagrid temp column header = Resize "timeout" canus = = "falls" width = "130" & gt; & Lt; Data: DataGridTemplateColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; Combobox x: name = "timeout combobox" isEditable = "true" selectedIndex = "{bining timeout index}" & gt; & Lt; Combobox item content = "first value" tag = "- 1" /> & Lt; ComboBoxItem content = "second value" tag = "0" /> & Lt; / ComboBox & gt; & Lt; / DataTemplate & gt; & Lt; / Data: DataGridTemplateColumn.CellTemplate & gt; & Lt; / Data: DataGridTemplateColumn & gt; & Lt; Data: Datagrid Template Column Header = "Priority" Resize Canusers = "False" width = "120" & gt; & Lt; Data: DataGridTemplateColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; Combobox x: name = "priority combobox" selectedindex = "{binding priority index}" & gt; & Lt; Combobox item content = "low" tag = "0" /> & Lt; Combobox item content = "preo1" tag = "1" /> & Lt; Combobox item content = "preo2" tag = "2" /> & Lt; Combobox item content = "preo3" tag = "3" /> & Lt; Combobox item content = "PREE 4" tag = "4" /> & Lt; / ComboBox & gt; & Lt; / DataTemplate & gt; & Lt; / Data: DataGridTemplateColumn.CellTemplate & gt; & Lt; / Data: DataGridTemplateColumn & gt; & Lt; Data: Datagrid Template Column Header = "Compression" Resize Canusers = "False" width = "105" & gt; & Lt; Data: DataGridTemplateColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; Combobox x: name = "compressioncombobox" selectedindex = "{binding compression index}" & gt; & Lt; Combobox item content = "on" tag = "1" /> & Lt; Combobox item = "closed" tag = "0" /> & Lt; / ComboBox & gt; & Lt; / DataTemplate & gt; & Lt; / Data: DataGridTemplateColumn.CellTemplate & gt; & Lt; / Data: DataGridTemplateColumn & gt; & Lt; Data: DataGrade Template column header = "protocol" can also be recycled = "falls" width = "100" & gt; & Lt; Data: DataGridTemplateColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; Combobox x: name = "protocol combobox" selectedindex = "{binding protocol index}" & gt; & Lt; Comboboxime content = "proto 1" /> & Lt; Combobox item content = "proto2" / & gt; & Lt; / ComboBox & gt; & Lt; / DataTemplate & gt; & Lt; / Data: DataGridTemplateColumn.CellTemplate & gt; & Lt; / Data: DataGridTemplateColumn & gt; & Lt; / Data: DataGrid.Columns & gt; & Lt; / Data: Data grid & gt;  

This data grid has been tied with the overview code , if I add an element to this datagrid and add it to the Observeable Combination combobox with its default value Is added, i.e. no value is selected. Now if I change the selection of the combo box and then delete this line, and then add this line then the cubobox should be added to the previous states. Singing, not the default state .. This is why .. it may be that Datagrid storage Kmbobaks asked for a better performance, but how clear those values?


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -