C1FlexGrid Selected Row

Originally Posted 16 February 2017, 11:41 am EST

  • Originally Posted 16 February 2017, 11:41 am EST

    Hi,

    I use the C1FlexGrid control for WinForms and have a strange behaviour. In more detail I have set
    c1FlexGrid.SelectionMode = SelectionModeEnum.ListBox

    Moreover I use the filter property similar to Excel in the column header of the grid. In this case
      
    [...]
    for (int k = 0; k < c1FlexGrid.Rows.Selected.Count; k++)
    {
    var row = c1FlexGrid.Rows.Selected[k];
    if (row.DataSource is DisplayRunRow) // 'DisplayRunRow' is a specific class
    {
    yield return (row.DataSource as DisplayRunRow).Run;
    }
    }

    returns one more row than it is selected. The first item is not shown in the grid and should therefore not be part of the selected rows.

    Best wishes
    Markus Wendt
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels