c# How do I freeze the Rowfilter in a DataGridView, so the filter stops changing shown data?
up vote
0
down vote
favorite
I show a DataTable in a DataGridView (_dgv) via a DataView (_dv).
I use a RowFilter to show only part of the data.
Now I would like to be able to edit the data in this filtered state, including the column, which I just filtered for. Let's say the column is called Infotext. However, if I change the text in Infotext the line I just changed disappears. I know it makes sense, since it does not contain the keyword anymore, but for my application I want to keep it inside the view until the user
changes the filter (I have lot's of filters).
Is there a way to "freeze" the view until the next rowfilter command was applied? While "frozen", the user should be allowed to edit any cell without changing the number of shown lines.
_dv = new DataView(_DataTable);
_dv.RowFilter = "Infotext LIKE '%test%'";
_dgv.DataSource = _dv;
Any help is appriated, let me know if you need more info to give an answer, thanks.
c# datagridview rowfilter
add a comment |
up vote
0
down vote
favorite
I show a DataTable in a DataGridView (_dgv) via a DataView (_dv).
I use a RowFilter to show only part of the data.
Now I would like to be able to edit the data in this filtered state, including the column, which I just filtered for. Let's say the column is called Infotext. However, if I change the text in Infotext the line I just changed disappears. I know it makes sense, since it does not contain the keyword anymore, but for my application I want to keep it inside the view until the user
changes the filter (I have lot's of filters).
Is there a way to "freeze" the view until the next rowfilter command was applied? While "frozen", the user should be allowed to edit any cell without changing the number of shown lines.
_dv = new DataView(_DataTable);
_dv.RowFilter = "Infotext LIKE '%test%'";
_dgv.DataSource = _dv;
Any help is appriated, let me know if you need more info to give an answer, thanks.
c# datagridview rowfilter
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I show a DataTable in a DataGridView (_dgv) via a DataView (_dv).
I use a RowFilter to show only part of the data.
Now I would like to be able to edit the data in this filtered state, including the column, which I just filtered for. Let's say the column is called Infotext. However, if I change the text in Infotext the line I just changed disappears. I know it makes sense, since it does not contain the keyword anymore, but for my application I want to keep it inside the view until the user
changes the filter (I have lot's of filters).
Is there a way to "freeze" the view until the next rowfilter command was applied? While "frozen", the user should be allowed to edit any cell without changing the number of shown lines.
_dv = new DataView(_DataTable);
_dv.RowFilter = "Infotext LIKE '%test%'";
_dgv.DataSource = _dv;
Any help is appriated, let me know if you need more info to give an answer, thanks.
c# datagridview rowfilter
I show a DataTable in a DataGridView (_dgv) via a DataView (_dv).
I use a RowFilter to show only part of the data.
Now I would like to be able to edit the data in this filtered state, including the column, which I just filtered for. Let's say the column is called Infotext. However, if I change the text in Infotext the line I just changed disappears. I know it makes sense, since it does not contain the keyword anymore, but for my application I want to keep it inside the view until the user
changes the filter (I have lot's of filters).
Is there a way to "freeze" the view until the next rowfilter command was applied? While "frozen", the user should be allowed to edit any cell without changing the number of shown lines.
_dv = new DataView(_DataTable);
_dv.RowFilter = "Infotext LIKE '%test%'";
_dgv.DataSource = _dv;
Any help is appriated, let me know if you need more info to give an answer, thanks.
c# datagridview rowfilter
c# datagridview rowfilter
edited Nov 19 at 7:19
asked Nov 18 at 20:23
Birk
8916
8916
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53365078%2fc-sharp-how-do-i-freeze-the-rowfilter-in-a-datagridview-so-the-filter-stops-cha%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown