PlatinumGrid
develop faster.
Custom Columns
ID
User Name
Custom
1
1
User 1
User 1
2
2
User 2
User 2
3
3
User 3
User 3
4
4
User 4
User 4
5
5
User 5
User 5
6
6
User 6
User 6

Custom columns allow you to generate the contents for cells, editors and filters completely in code, providing unprecedented flexibility.

In this example, the first 2 columns are standard text columns, but the 3rd column is a custom column, and its contents is generated using the code shown below:

function JTPlatinumGrid1CustomFieldGenerate($sender, $params)
{
    list( $grid, $column, $fields ) = $params;

    $value = $fields[ $column->DataField ];

    return '' . $value . '';
}