private void BindMatList() { DataTable dt = tb_matrl_main.GetMatList(txt_GRD.Value, txtSPEC1.Value, txtSPEC2.Value, ltlgroupCode.Text, ltlMatType.Text).Tables[0]; if (dt.Rows.Count > 0) { rptList.DataSource = dt; rptList.DataBind(); } else { rptList.DataSource = null; rptList.DataBind(); } }