示例#1
0
        private void BindList()
        {
            DataTable dt = tb_matrl_main.GetCustStlGrd_FCP(txtmatcode.Text, txtmatname.Text).Tables[0];

            if (dt.Rows.Count > 0)
            {
                rptList.DataSource = dt;
                rptList.DataBind();
            }
            else
            {
                rptList.DataSource = null;
                rptList.DataBind();
            }
        }