Skip to content

[syncfusion_flutter_datagrid] Can't set datagridcontroller.selectedRow/s after last update #2305

Open
@berslen

Description

@berslen

Bug description

Repod steps;

Use package version 28.2.11
Try setting selectedRow/s from data grid controller
dataGridController.selectedRows = [dataGridSource.effectiveRows[rowColumnIndex.rowIndex]]
It throws out of index error

Also I would like to mention for other bug,
When using grouping in the table dataGridSource.effectiveRows doesnt include the RowType.captionSummaryCoveredRow which make it impossible to set selectedRows progmatically because rowColumnIndex is shifts if there is any groups.
I know there is active feedback is your official site, but it's still sitting at validated even though it's been months. If you can provide a timeline on fix of this issue it would be great.

Steps to reproduce

Repod steps;

Use package version 28.2.11
Try setting selectedRow/s from data grid controller
It throws out of index error

Code sample

Code sample
dataGridController.selectedRows = [dataGridSource.effectiveRows[rowColumnIndex.rowIndex]]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Stack Traces

Stack Traces
[Add the Stack Traces here]

On which target platforms have you observed this bug?

Windows

Flutter Doctor output

Doctor output
[Add your output here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions