Skip to content

Programatically Selecting DatagridView Row #1514

Description

@itg-assistant

Puloy Sebastian asked 2018-04-27 01:18:36 UTC

Hi,

Although searching and selecting a datagridview row programatically based on a  condition works and highlights the selected row, datagridview doesn't scroll  up or down if the selected/highlighted row is not visible within the full datagriview window requiring the user to manually scroll down or up to search/look for the selected/highlighted row.

Using pseudocode

for each row in datagridview row

if row condition is true

row.Selected = true

WinForms and VWG scroll down/up to make the selected/highlighted row visible.

Thanks.

Puloy

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions