Skip to main content
Version: 4.2.2

Parameters

Parameters are values that are passed into a function, or method to provide input data. These parameters can be created in the grid definition from its designer, and assigned from the web grid component programmatically.

Example

The following example demonstrates how to assign the parameter values programmatically:

ParameterItems parameters = new ParameterItems();
parameters.Add(new ParameterItem
{
Name = "UserId",
Format = InfoArch.Common.Core.Structures.Enums.DataType.Numeric,
Value = 2
});

GridViewModel viewModel = new GridViewModel(...);
viewModel.SetParameters(parameters);
...
viewModel.LoadInitialConfiguration();
note

The LoadInitialConfiguration() method must be after the parameter's assignment throughout the SetParameters method.