728x90
OK. With some further investigation, I have found that the following code does do the trick:
int i = aView.CurrentRow.Index + 1;
aView.CurrentCell = aView.Rows[i].Cells[0];
I am having some kind of threading issue, because I am trying to manipulate the DataGridView from within a separate user-defined class. I don't know enough about threads to resolve this, but at least I have got to the bottom of changing the CurrentRow issue.
int i = aView.CurrentRow.Index + 1;
aView.CurrentCell = aView.Rows[i].Cells[0];
I am having some kind of threading issue, because I am trying to manipulate the DataGridView from within a separate user-defined class. I don't know enough about threads to resolve this, but at least I have got to the bottom of changing the CurrentRow issue.
728x90
'C#' 카테고리의 다른 글
c# combobox datatable initialize 문제 (0) | 2014.06.30 |
---|---|
읽기 전용 필드에 바인딩된 datagridview (0) | 2014.06.29 |
c# numericupdown valuechanged 문제 (0) | 2014.06.28 |
c# datagridview selectedrows (0) | 2014.06.28 |
c# datagridview에서 버튼 클릭 이벤트 (0) | 2014.06.28 |