示例#1
0
 private void getDocTypeAllList()
 {
     DocTypeFunc fnc = new DocTypeFunc();
     gvDoctype.AutoGenerateColumns = false;
     gvDoctype.DataSource = fnc.GetDocTypeAll(null);
 }
示例#2
0
 private void SetDoctypeList()
 {
     DocTypeFunc fnc = new DocTypeFunc();
     DataTable dt = fnc.GetDocTypeAll(null);
     if (dt.Rows.Count > 0)
     {
         dgDocType.AutoGenerateColumns = false;
         dgDocType.DataSource = dt;
     }
 }