internal string[] GetRowDataOld(object row)//My function to get single row at once
{
int fIndex = (int)row;
//if (!UseDataStore) return GetRowKey(fIndex, 0);
UAReturn uar = _service.DataSourceReadRow(_dataSource.Name, fIndex);//gets the one row in xml DOM
XmlNodeList xnl = uar.Data.SelectNodes("/Root/UADoubleMatrix/rows/row/columns/column");
int datacount = xnl.Count;
string[] rowdata = new string[datacount];
for (int i = 0; i < datacount; i++)
{
rowdata[i] = xnl.Item(i).InnerXml;
}
//For R Dot net only
if (rowdata.Length != _dataSource.Variables.Count)
{
rowdata = new string[_dataSource.Variables.Count];
for (int i = 0; i < datacount; i++)
{
rowdata[i] = "Can't get Data"; ;
}
}
return rowdata;
//return Values[GetRowKey(fIndex, colIndex)];
}