public void LoadTinhThanh() { try { tblTinhThanh = new MyTable.TblTinhThanh(1); if (tblTinhThanh != null) { lvTinhThanh.Items.Clear(); for (int i = 0; i < tblTinhThanh.Rows.Count; i++) { int stt = i + 1; ListViewItem item = new ListViewItem(stt.ToString()); lvTinhThanh.Items.Add(item); // item.SubItems.Add(stt.ToString()); item.SubItems.Add(tblTinhThanh.Rows[i]["MA"].ToString().Trim()); item.SubItems.Add(tblTinhThanh.Rows[i]["TEN"].ToString().Trim()); } } } catch (Exception ex) { TLog.WriteErr("frmTinhThanh_LoadTinhThanh", ex.Message + "|" + ex.StackTrace); } }