BKI_DichVuMatDat.NghiepVu.HopDong.f001_import_hop_dong.check_ma_ko_trung_lap C# (CSharp) Method

check_ma_ko_trung_lap() private method

private check_ma_ko_trung_lap ( int column_id ) : bool
column_id int
return bool
        private bool check_ma_ko_trung_lap(int column_id)
        {
            var list_ma = new List<string>();
            foreach (DataRow dt in m_data_table_grv.Rows)
            {
                if (dt[column_id] == null)
                {
                    continue;
                }
                list_ma.Add(dt[column_id].ToString());
            }
            var list_ma_hd = list_ma.Distinct().ToList();
            if (list_ma_hd.Count == m_data_table_grv.Rows.Count)
            {
                return true;
            }
            return false;
        }