BlueSky.Model.VirtualListDynamic.GetCellValue C# (CSharp) Метод

GetCellValue() приватный Метод

private GetCellValue ( object row, int colIndex ) : object
row object
colIndex int
Результат object
        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)];
        }

Usage Example

 public override object GetValue(object component)
 {
     return(fList.GetCellValue(component, fIndex));
 }