oTrans.Refresh on Order bug when using List view

I believe I found my solution here How to set in code the EpidataView record being CurrentDataRow - #8 by Hogardy

I did change this a little to be more efficient.

int indexDtl = edvOrderDtl.dataView.Table.AsEnumerable().Select(row => row.Field<int>("OrderLine")).ToList().FindIndex(col => col == currLine);
edvOrderDtl.Row = indexDtl;
1 Like