/// <summary>
        /// This method is used to bindind the datagrid.
        /// </summary>
        public void initGrid()
        {
            try
            {
                PartiesClass obj = new PartiesClass();
                DataSet      ds;
                ds = obj.ShowSupplierInfo(txtSuppID.Text, txtName.Text, txtPlace.Text);

                //******
                DataTable dt = ds.Tables[0];
                DataView  dv = new DataView(dt);
                dv.Sort = System.Convert.ToString(Cache["strorderby"]);
                //******
                if (dv.Count > 0)
                //		if(ds.Tables[0].Rows.Count>0)
                {
                    GridSearch.DataSource = dv;
                    GridSearch.DataBind();
                    GridSearch.Visible = true;
                }
                else
                {
                    MessageBox.Show("Vendor not Found");
                    GridSearch.Visible = false;
                }
            }
            catch (Exception ex)
            {
                CreateLogFiles.ErrorLog("Form:Supplier_List.aspx,Method:initGrid(),Class:PartiesClass.cs.  EXCEPTION: " + ex.Message + "  User_ID: " + uid);
            }
        }