Exemplo n.º 1
0
        private void DataGridView1_MouseClick(object sender, MouseEventArgs e)
        {
            string        id  = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
            expendituredb idb = new expendituredb();

            idb.get(Int32.Parse(id));
            textBox1.Text        = idb.name;
            textBox2.Text        = idb.amount;
            dateTimePicker1.Text = idb.date;
            textBox3.Text        = idb.expentidure;
        }