Hi all,
Can someone give me a hint how to update only the content in the eto gridview.
If i use
mod = forms.BindingUpdateMode.Source forms.GridView.UpdateBindings(self.grid,mod)
the whole gridview will be updated not only the content.
The code is.
import Eto.Forms as forms
import Eto.Drawing as drawing
import Rhino.UI
import ghpythonlib.treehelpers as thif Execute:
class TestDialog(forms.Form):
def init(self):
self.Title = “Cell Colors”
self.Size = drawing.Size(300,500)
self.Resizable =True
self.Topmost = True
self.grid = forms.GridView()for i in range(0,Table.BranchCount): Branch= forms.GridColumn() Branch.DataCell = forms.TextBoxCell(i) col = forms.GridColumn() col.HeaderText = Header[i] col.DataCell = forms.TextBoxCell(i) self.grid.Columns.Add(col) self.grid.DataStore = zip(*[list(i) for i in Table.Branches]) layout = forms.DynamicLayout() layout.AddRow(self.grid) self.Content = layout def main(): dialog = TestDialog() dialog.Show() if __name__ == "__main__": main()
And the window looks like this