Changing grid cells programatically

  • Thread starter Thread starter JezB
  • Start date Start date
J

JezB

I have a DataGrid and I'm changing the value in one of the cells
programatically.

Problem is, my change isn't being picked up (and saved in the underlying
data source), unless I manually tab off the cell in the grid.

I've tried calling BeginEdit and EndEdit around the code that populates the
cell, to no avail.

What am I missing?
 
Hmmmm, I added this :

SendKeys.Send("{TAB}+{TAB}"); // tab then backtab, so that text change
recognised in datasource

and it sorted it out. I'm not convinced it's good programming practice
however!
 
Back
Top