---
title: "Setting The Row filter On Load"  
description: "Setting The Row filter On Load"  
author: "Anonymous User"  
published: 2014-11-19  
updated: 2014-11-20  
canonical: https://www.mindstick.com/forum/12643/setting-the-row-filter-on-load  
category: "asp.net"  
tags: ["devexpress"]  
reading_time: 1 minute  

---

# Setting The Row filter On Load

How can I set the [Row](https://www.mindstick.com/forum/1212/this-row-already-belongs-to-this-table) [filter](https://www.mindstick.com/forum/1176/filter-in-a-xml-file-in-c-sharp) to a [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) so when the [form](https://www.mindstick.com/forum/6/multi-form-mfc-application) loads it [filters](https://www.mindstick.com/forum/156119/how-to-use-filters-in-angularjs) by that columns value in [devexpress](https://www.mindstick.com/forum/34326/fill-devexpress-gridview-with-list) gridview.

## Replies

### Reply by Anonymous User

I thought you were using the ASPxGridView. If you are using a Winforms grid, the code should be:

```
gridView1.ActiveFilterCriteria = new DevExpress.Data.Filtering.BinaryOperator("Status", "P");
```


---

Original Source: https://www.mindstick.com/forum/12643/setting-the-row-filter-on-load

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
