Answer the question
In order to leave comments, you need to log in
How to make two way communication between DataGridView and ArrayList?
Hello, please tell me, there is a task:
To sort an array and search for an element, use the methods of the ArrayList class. To manipulate the contents of an array, it is mandatory to use a two-way relationship with the DataGridView.
// Клик по пункты "Создать => ввод"
private void вводToolStripMenuItem_Click(object sender, EventArgs e)
{
ArrayList list = new ArrayList();
dataGridView1.Visible = true;
dataGridView1.AutoGenerateColumns = true;
dataGridView1.DataSource = list;
}
dataGridView1
empty and I can't add new values there, see form screenshot below Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question