internal object GetCellValue(object row, int colIndex)
{
//Not sure about following 'if' condition. Its just to stop the crash. But I think it should be done differently
if (row.GetType().Name.Equals("BindableRowCellCollection"))
return "";
int fIndex = (int)row;
if (!UseDataStore) return GetRowKey(fIndex, colIndex);
UAReturn uar = _service.DataSourceReadCell(_dataSource.Name, fIndex, colIndex);//gets the value of specific cell in xml DOM
XmlNodeList xnl = uar.Data.SelectNodes("/Root/*");
object obj = xnl.Item(0).InnerXml;
return obj;
//return Values[GetRowKey(fIndex, colIndex)];
}