private void applyDatebtn_Click(object sender, EventArgs e) { int ind = 0; for (int i = 0; i < dataGridView1.RowCount; i++) { if (dataGridView1.Rows[i].Cells[0].Value.ToString() == dataGridView1.CurrentRow.ToString()) { ind = i; } } EventClass eventClass = new EventClass(dataGridView1.CurrentRow.Cells[0].Value.ToString(), Datebox.Text.ToString(), "--"); AddInfoTodayGrid(eventClass.nameItem, eventClass.dateItem, eventClass.timeItem); dataGridView1.Rows.RemoveAt(dataGridView1.CurrentRow.Index); Datebox.Clear(); }
private void Datebox_Click(object sender, EventArgs e) { Datebox.Clear(); }