c# - Having trouble binding list/grid to collection -
I have set up a grid and it's stored in the archive. I can edit items in the archive through my grid And these changes are spread in the collection. And, the GUI is showing everything in the collection at that time when MotherSource is set. However, I'm changing some items into the program (after item sources) and these changes have not been reflected in the grid / GUI. Do I have to do something to refresh it? FYI, for field I want to edit (MoveToResource, ResourceKey, and resource type), I have set the double mode below to my grid
& lt; ListView name = "lstXAMLStrings" margin = "5" grid. Rau = "1" & gt; & Lt; ListView.View & gt; & Lt; GridView & gt; & Lt; GridView.Columns & gt; & Lt; GridViewColumn Header = "Remove?" & Gt; & Lt; GridViewColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; Checkbox content = "" ischiched = "{binding path = move processing, mode = two}" & gt; & Lt; / Checkbox & gt; & Lt; / DataTemplate & gt; & Lt; /GridViewColumn.CellTemplate> & Lt; / GridViewColumn & gt; & Lt; GridViewColumn Header = "Text" & gt; & Lt; GridViewColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; Local: RichTextBlock RichText = "{binding path = formatted matte line}" textwapping = "wrap" width = "650" & gt; & Lt; / Local: Rich TextBox & gt; & Lt; / DataTemplate & gt; & Lt; /GridViewColumn.CellTemplate> & Lt; / GridViewColumn & gt; & Lt; GridViewColumn Header = "Key Name" & gt; & Lt; GridViewColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; Text box text = "{binding path = resource key, mode = twitter}" width = "150" & gt; & Lt; / Text box & gt; & Lt; / DataTemplate & gt; & Lt; /GridViewColumn.CellTemplate> & Lt; / GridViewColumn & gt; & Lt; GridViewColumn header = "resource type" & gt; & Lt; GridViewColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; Combo box itemsource = "{binding source = {static resource odp}}" selected itam = "{binding path = resource, mode = twi}" & gt; & Lt; / Combo box & gt; & Lt; / DataTemplate & gt; & Lt; /GridViewColumn.CellTemplate> & Lt; / GridViewColumn & gt; & Lt; /GridView.Columns> & Lt; / GridView & gt; & Lt; /ListView.View> & Lt; / ListView & gt;
You need to make sure that your archive item is applicable.
If each item is programmatically changing (correctly), then it will apply that your ListView / GridView will continue.
If you modify your collection items programmatically, or in another screen
Comments
Post a Comment