Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to query the currently selected row #217

Closed
simonp2014 opened this issue Oct 19, 2020 · 2 comments
Closed

Provide a way to query the currently selected row #217

simonp2014 opened this issue Oct 19, 2020 · 2 comments

Comments

@simonp2014
Copy link

Therefore are times in my app where I want to restore the previously selected row using GridComponent.SelectRow . However, there doesn't seem to be a way to query which row is currently selected.

I've added a public method like this to GridBlazor/Pages/GridComponent.razor.cs

public int GetSelectedRow()
{
	return SelectedRow;
}

Please can you add an accessor like this unless there's a better way of achieving a similar result?

@gustavnavar
Copy link
Owner

Package version 1.9.2 implements public getters for SelectedRow and SelectedRows properties.

SelectedRow is used for single row selections and SelectedRows is used when multiple selection is enabled

@simonp2014
Copy link
Author

Thank you. Just what I needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants