private void grid_list() { DataTable dt = new DataTable(); try { dgv_floorPlan.Rows.Clear(); dt = wDm.floorPlanList(txt_srch.Text, dtp_start.Text, dtp_end.Text); if (dt.Rows.Count > 0) { for (int i = 0; i < dt.Rows.Count; i++) { dgv_floorPlan.Rows.Add(); dgv_floorPlan.Rows[i].Cells["INPUT_DATE"].Value = dt.Rows[i]["INPUT_DATE"].ToString(); dgv_floorPlan.Rows[i].Cells["INPUT_CD"].Value = dt.Rows[i]["INPUT_CD"].ToString(); dgv_floorPlan.Rows[i].Cells["FP_NM"].Value = dt.Rows[i]["IMG_NAME"].ToString(); } } } catch (Exception e) { MessageBox.Show("데이터가 없습니다."); } }