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

Enhance GetRowsByValue Method to Support Partial Matching and Case Sensitivity #621

Open
KrisTenev opened this issue Apr 3, 2024 · 0 comments

Comments

@KrisTenev
Copy link

Describe the feature:
The current implementation of the GetRowsByValue method only checks for an exact match of the given value in a specific column. The feature request is to improve the method by allowing partial matches of the value in the column. This can be achieved by modifying the condition if(gridCell.Value == value) to:

if ((!strict && gridCell.Value.ToLower().Contains(value.ToLower())) || (strict && gridCell.Value == value))
{
...
}

Additionally, a new parameter strict should be added to the method to control whether the matching should be strict or not.

Workarounds:
Currently, there are no workarounds available for this feature as it is missing in the current implementation.

Additional context:
The suggested modification to the code will enable the GetRowsByValue method to locate items that have names that are partially contained in the given value. The new parameter strict will allow users to control whether the matching should be case-sensitive or case-insensitive. The updated method signature would be:
public GridRow[] GetRowsByValue(int columnIndex, string value, int maxItems = 0, bool strict = true).

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

1 participant