>"A local variable named 'dv' is already defined in this scope"Mat,
The error means that you've already defined a variable called dv elsewhere in your code. Try this instead:
dv = (ds.GetDataView("dv" + this.CurrentTableName, this.CurrentTableName));
~~Bonnie