|
@@ -4,6 +4,7 @@ using InABox.Scripting;
|
|
|
using InABox.Wpf;
|
|
|
using InABox.WPF;
|
|
|
using org.omg.PortableInterceptor;
|
|
|
+using sun.util.resources.cldr.fr;
|
|
|
using Syncfusion.Data;
|
|
|
using Syncfusion.Data.Extensions;
|
|
|
using Syncfusion.UI.Xaml.Grid;
|
|
@@ -1457,6 +1458,24 @@ public class DynamicGridGridUIComponent<T> : IDynamicGridUIComponent<T>, IDynami
|
|
|
dataRow[datacolname] = value ?? DBNull.Value;
|
|
|
}
|
|
|
}
|
|
|
+ void IDynamicGridUIComponent<T>.UpdateCell(CoreRow row, DynamicColumnBase column)
|
|
|
+ {
|
|
|
+ var dataRow = GetDataRow(row);
|
|
|
+ if(dataRow is not null)
|
|
|
+ {
|
|
|
+ if(column is DynamicGridColumn gc)
|
|
|
+ {
|
|
|
+ var dataColName = gc.ColumnName.Replace(".", "_");
|
|
|
+
|
|
|
+ dataRow[dataColName] = row[gc.ColumnName] ?? DBNull.Value;
|
|
|
+ }
|
|
|
+ else if(column is DynamicActionColumn ac)
|
|
|
+ {
|
|
|
+ var i = ActionColumns.IndexOf(ac);
|
|
|
+ dataRow[$"ActionColumn{i}"] = ac.Data(row);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
void UpdateRow(CoreRow row, DataRow dataRow)
|
|
|
{
|