O
O
one__for__one2016-02-16 13:54:09
Windows
one__for__one, 2016-02-16 13:54:09

Devexpress ASPxGridView how to hide rows where first column value is "Deleted"?

You want to hide rows where the value "Deleted" is in the first column.
I found the code, but it is for XtraGrid:
using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Columns;
//...
ColumnView view = gridView1;
view.ActiveFilter.Add(view.Columns["CategoryName"],
new ColumnFilterInfo("[CategoryName] Like 'c%'", ""));
Who faced such a task?
I'm using version 15.2.
Asp.net web forms.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vest, 2017-09-10
@Vest

I would advise you to do it easier - your query should filter the lines that contain the word you don't need. Let's say in SqlDataSource use a query like:

SELECT *
FROM Categories
WHERE CategoryName NOT LIKE 'c%';

You thereby transfer less data to the server in order to render the page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question