WINCE 5.0使用datagrid在第一行插入新行

                            int rowNum = this.dataGrid.CurrentRowIndex + 1;
            DataTable dt = (DataTable)this.dataGrid.DataSource;
            DataRow dr = dt.NewRow();
            dr[0] = rowNum;
            dr[1] = "";
            dr[2] = "";
            dt.Rows.InsertAt(dr, rowNum - 1);

            for (int i = rowNum; i < dt.Rows.Count; i++)
            {
                dt.Rows[i][0] = i + 1;
            }
            this.dataGrid.DataSource = null;
            this.dataGrid.DataSource = dt;

            DataGridCell cell = new DataGridCell(rowNum - 1, 1);
            this.dataGrid.CurrentCell = cell;

使用上述代码在当前选中的行上头添加一个新行,序号连续,并且自动选中新添加的行,正常情况下能实现效果。
但是如果在第一行添加就出现问题了,新添加的行看起来是变到了第二行应该存在的位置,并且选中的不是新添加的行,查看datatable中的值并没有出现顺序混乱,已经不知道怎么解决了,麻烦有做过的朋友给指点一下

DataGridCell cell = new DataGridCell(rowNum - 1, 1);
这里rowNum是多少?是不是下标越界了。

没人知道问题所在么……………………