private void myBind() { DataView dt = B_Role.GetRoleInfo(); this.EGV.DataSource = dt;//.FindRows(" AddUser="******"RoleID" }; this.EGV.DataBind(); }
private void bind() { this.GridView1.DataSource = B_Role.GetRoleInfo(); this.GridView1.DataKeyNames = new string[] { "RoleID" }; this.GridView1.DataBind(); }