Exemple #1
0
        private void isidtgv()
        {
            dt.Columns.Add("ID Account");
            dt.Columns.Add("Name");
            dt.Columns.Add("Birthday");
            dt.Columns.Add("Gender");
            dt.Columns.Add("Citizenship");
            dt.Columns.Add("Address");
            dt.Columns.Add("Phone");
            dt.Columns.Add("Email");
            dt.Columns.Add("Username");
            dt.Columns.Add("Status");
            dt.Columns.Add("Type");
            dt.Columns.Add("Question");

            LinearSearch ls = new LinearSearch();

            result = ls.searchByName(materialSingleLineTextField1.Text);

            foreach (var x in result)
            {
                string[] isi = x.ToString().Split('#');
                dt.Rows.Add(isi[0], isi[1], isi[2], isi[3], isi[4], isi[5], isi[6], isi[7], isi[8], isi[10], isi[11], isi[12]);
            }

            dataGridView1.DataSource = dt;
        }
Exemple #2
0
        private void materialRaisedButton7_Click(object sender, EventArgs e)
        {
            dt.Clear();

            LinearSearch ls = new LinearSearch();

            result = ls.searchByName(materialSingleLineTextField1.Text);

            foreach (var x in result)
            {
                string[] isi = x.ToString().Split('#');
                dt.Rows.Add(isi[0], isi[1], isi[2], isi[3], isi[4], isi[5], isi[6], isi[7], isi[8], isi[10], isi[11], isi[12]);
            }

            dataGridView1.DataSource = dt;
        }