Esempio n. 1
0
        private void NonQLoadGrid()
        {
            HeapSort hs = new HeapSort(dataAllBoth);

            dataAllBoth = hs.GetListSorted();
            label4.Text = dataAllBoth.Count + " kết quả !";
            dataGridView1.Rows.Clear();
            int i = 1;

            foreach (var item in dataAllBoth)
            {
                dataGridView1.Rows.Add(item.ToArray(i));
                i++;
            }
        }
Esempio n. 2
0
        private void LoadGrid(string condition)
        {
            dataAllBoth = dB.ToList($"select {lst_col} from tblLandInf where {condition}");
            HeapSort hs = new HeapSort(dataAllBoth);

            dataAllBoth = hs.GetListSorted();
            label4.Text = dataAllBoth.Count + " kết quả !";
            dataGridView1.Rows.Clear();
            int i = 1;

            foreach (var item in dataAllBoth)
            {
                dataGridView1.Rows.Add(item.ToArray(i));
                i++;
            }
        }