protected void ImageButtonSearch_Click(object sender, ImageClickEventArgs e)
        {
            ClientCheque clientCheque = new ClientCheque();

            clientCheque.ChequeNumber = txtClientCheques_ID.Text != "" ? txtClientCheques_ID.Text : "";

            if (string.IsNullOrEmpty(TextBoxSearch.Text) && clientCheque.ChequeNumber == "")
            {
                GridViewUnPaidClientCheque.DataSource = ClientCheque.GetUnPaidClientCheques();
                GridViewUnPaidClientCheque.DataBind();
            }

            else if (TextBoxSearch.Visible)
            {
                clientCheque.ClientName = TextBoxSearch.Text;

                GridViewUnPaidClientCheque.DataSource = ClientCheque.GetUnPaidClientCheques().Where(s => s.ClientName == clientCheque.ClientName);
                GridViewUnPaidClientCheque.DataBind();
            }
            else
            {
                GridViewUnPaidClientCheque.DataSource = ClientCheque.GetUnPaidClientCheques().Where(s => s.ChequeNumber == clientCheque.ChequeNumber);
                GridViewUnPaidClientCheque.DataBind();
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         GridViewUnPaidClientCheque.DataSource = ClientCheque.GetUnPaidClientCheques();
         GridViewUnPaidClientCheque.DataBind();
     }
 }