public void BindData(int type) { this.DataGrid1.AllowCustomPaging = false; this.DataGrid1.BindData(Advertisement.FindAllByType(type).ToDataTable(false)); }