I would like to change the current DataRowView to a specific line, so I can set the value where I want to.
public void SetTimeFromTimer(DateTime date, string timeFromTimer)
{
monthCalendar1.SetDate(date);
dataGridView1.ClearSelection();
dataGridView1.Rows[1].Selected = true;
DataRowView rowView = (DataRowView)BindingContext[repTimeTable].Current;
rowView["zr"] = timeFromTimer;
}
You would have to loop through each column and assign the value of the current cell to the desired row's cell. The following code can help you.