Example #1
0
        private void GridViewBind()
        {
            multipurposeBL     bl      = new multipurposeBL();
            multipurposeEntity mentity = new multipurposeEntity();

            mentity.ID1    = txtID1.Text;
            mentity.ID2    = txtID2.Text;
            mentity.Key1   = txtKey1.Text;
            mentity.Key2   = txtKey2.Text;
            mentity.IdName = txtIDName.Text;
            mentity.Type   = Access_Type;
            DataTable dt = bl.M_Multiporpose_Search(mentity);

            gvMultiporpose.DataSource = dt;
            if (dt.Rows.Count == 0)    //HET
            {
                ClearSession();
            }
        }