datagridview - WinForm DataGridViewComboBoxCell - only Formatted Value updated instead of Value -
i wonder if came across following issue: update datagridviewcomboboxcell follows (it's copying settings in 1 row other multiple rows selected):
irs = 0 me.dgw.selectedrows.count - 1 ic = 0 20 me.dgw.selectedrows(irs).cells(ic + 3).value = _ me.dgw.rows(me.comboboxcopyfromline.selectedvalue).cells(ic + 3).value call checkline(me.dgw.selectedrows(irs).index) ' validation next next
behaviour
when in other case on me.dgw.rows(xx)... works perfectly. however, in case (selectedrows instead rows), correct result in comboboxcells visually, validation function flashes cells containing int16 values red, indicating value missing.
when press save , reload form, "red" values gone. affects int16 values, columns string comboboxcell selection valid , saved.
when go edit mode , leave (click cell, click other cell), validation flashes green valid value , when save it, correct value saved.
i suspect there discrepacy between int16 value being inserted , datatype of valuemember (should smallint), have no idea how or test , fix it... on other side, copy valid data, same cell of other line, should of same data type too...
Comments
Post a Comment