| 12345678910111213141516171819 |
- using DevExpress.Data;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Ips.Library.DxpLib
- {
- public static class RealTimeSourceExtensions
- {
- public static T GetRowCellValue<T>(this RealTimeProxyForObject source,string propName)
- {
- var propDescriptors = source.Content;
- var a = propDescriptors.Where(n => n.Key.Name == propName).FirstOrDefault();
- return (T)a.Value;
- }
- }
- }
|