private void BindGridDataFiter(string filter) { string connection = Request.Cookies["Company"].Value; IInternalTransferService bl = new BusinessLogic(connection); string branch = Request.Cookies["Branch"].Value; var dbData = bl.ListInternalRequests(connection, filter, "Status", branch); if (dbData != null) { GrdViewRequestes.DataSource = dbData; GrdViewRequestes.DataBind(); } }
private void BindGridData() { string connection = Request.Cookies["Company"].Value; IInternalTransferService bl = new BusinessLogic(connection); string branch = Request.Cookies["Branch"].Value; var dbData = bl.ListInternalRequests(connection, txtSearch.Text, ddCriteria.SelectedValue, branch); if (dbData != null) { GrdViewRequestes.DataSource = dbData; GrdViewRequestes.DataBind(); } }