List<Orders> order = new List<Orders>();
protected void Page_Load(object sender, EventArgs e)
{
BindDataSource();
}
private void BindDataSource()
{
int orderId = 10000;
int empId = 0;
for (int i = 1; i < 9; i++)
{
order.Add(new Orders(orderId + 1, "VINET", empId + 1, 32.38, "Reims", true));
order.Add(new Orders(orderId + 2, "TOMSP", empId + 2, 11.61, "Munster", false));
order.Add(new Orders(orderId + 3, "ANATER", empId + 3, 45.34, "Berlin", true));
order.Add(new Orders(orderId + 4, "ALFKI", empId + 4, 37.28, "Mexico", false));
order.Add(new Orders(orderId + 5, "FRGYE", empId + 5, 67.00, "Colchester", true));
order.Add(new Orders(orderId + 6, "JGERT", empId + 6, 23.32, "Newyork", true));
orderId += 6;
empId += 6;
}
this.OrdersGrid.DataSource = order;
this.OrdersGrid.Model.FilterSettings.FilteredColumns.Add(new Syncfusion.JavaScript.Models.FilteredColumn() { Field = "CustomerID", MatchCase = false, Operator = Syncfusion.JavaScript.FilterOperatorType.NotEquals, Predicate = "and", Value = "VINET" });
this.OrdersGrid.DataBind();
} |
|