コード例 #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            PatientBO patientbo = new PatientBO();

            GridView1.VirtualItemCount = patientbo.Count(x => x.HealthCardNo.Contains(TextBox1.Text.Trim()));
            GridView1.DataSource       = patientbo.Find(x => x.HealthCardNo.Contains(TextBox1.Text.Trim()), 0, GridView1.PageSize)
                                         .ToList();
            GridView1.DataBind();
            Button1.Enabled = true;
        }