GridColumnBinder
Class in Oadm.Sdk.Client.Controls · Oadm.Sdk.Client.dll
The view glue of a GridColumnLayout (SDK 0.17.0): applies the saved visibility, order and widths to a DataGrid (columns matched by their Tag; saved widths as star weights, so the grid keeps filling its width) and captures the user’s reorder and resize.
public sealed class GridColumnBinder : IDisposableImplements IDisposable
Methods
Section titled “Methods”Attach
Section titled “Attach”static IDisposable Attach(DataGrid grid, GridColumnLayout layout, Func<string, bool>? hidden = null, IReadOnlySet<string>? fixedWidth = null)Binds the grid to the layout until the result is disposed.
Parameters
grid: The grid; its columns carry their key inTag.layout: The columns the user chose.hidden: Columns a mode hides whatever the chooser says (the device grid’s Tags column in group mode); null: none.fixedWidth: Columns that keep the width of the view (an icon, a picture).
Dispose
Section titled “Dispose”void Dispose()Stops following the grid and the layout (the grid keeps its columns as they are).
Refresh
Section titled “Refresh”static void Refresh(DataGrid grid, GridColumnLayout layout, Func<string, bool>? hidden = null)Shows or hides every column again (a mode of hidden changed).