I want to set a value in a specific field in the current row of a DataSet.
This seems like the most basic thing to do but I can't find the syntax for
identifying the current row.
IOW, I can do this:
SomeRow["fieldName"] = 'value';
But how do I set SomeRow to the row that the user is currently viewing?
I tried this:
DataRowView drv = (DataRowView) cMgr.Current; //Where cMgr is a
CurrencyManager
drv["SubCategor y"] = Value;
But it doesn't stick. When the user moves off the record and back again,
the previous value is restored.
This seems like the most basic thing to do but I can't find the syntax for
identifying the current row.
IOW, I can do this:
SomeRow["fieldName"] = 'value';
But how do I set SomeRow to the row that the user is currently viewing?
I tried this:
DataRowView drv = (DataRowView) cMgr.Current; //Where cMgr is a
CurrencyManager
drv["SubCategor y"] = Value;
But it doesn't stick. When the user moves off the record and back again,
the previous value is restored.
Comment