|
@@ -274,6 +274,8 @@ public class DynamicGridGridUIComponent : IDynamicGridUIComponent, IDynamicGridG
|
|
|
return result.ToArray();
|
|
|
}
|
|
|
|
|
|
+ public CoreRow GetVisibleRow(int index) => _rowMap.Values.ToArray()[index];
|
|
|
+
|
|
|
private void SetSelectedRows(CoreRow[] rows)
|
|
|
{
|
|
|
DataGrid.SelectedItems.Clear();
|
|
@@ -1501,6 +1503,22 @@ public class DynamicGridGridUIComponent : IDynamicGridUIComponent, IDynamicGridG
|
|
|
AddRows(page, false);
|
|
|
}
|
|
|
|
|
|
+ // public CoreRow DataRowIndexToCoreRow(int index)
|
|
|
+ // {
|
|
|
+ // var map = _rowMap.FirstOrDefault(x => x.Value.Index == row.Index);
|
|
|
+ // if (!Equals(map,default(KeyValuePair<DataRow,CoreRow>)))
|
|
|
+ // {
|
|
|
+ // //var datarow = table.Rows[row.Index];
|
|
|
+ // for (var i = 0; i < rowdata.Count; i++)
|
|
|
+ // map.Key[i] = rowdata[i] ?? DBNull.Value;
|
|
|
+ // }
|
|
|
+ // else
|
|
|
+ // {
|
|
|
+ //
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // }
|
|
|
+
|
|
|
public void InvalidateRow(CoreRow row)
|
|
|
{
|
|
|
var table = DataGridItems;
|