Update datasource from view values (WinForms DataGridView) -
i changing datagridview cell values programmatically, values not pushed bound datasource. pushed cells belonging selected row. how can ask datagridview push rows values datasource?
edit:
this code seems trick, may better solution?
grid.currentcell = cell; cell.value = "some value"; grid.endedit(0);
you shouldn't update datagridview
cells, instead should directly update data source. if implements inotifypropertychanged
, datagridview
reflect changes automatically
Comments
Post a Comment