correct, you cannot insert rows between other rows via the DataGridView.Rows.Insert
method when it is bound.
You should try to insert the row in the datasource, probably the datatable
and revresch the view
eg.
yourDataRow= yourDataTable.NewRow();
yourDataRow["columname"] = "content";
yourDataTable.Rows.Add(yourDataRow);
Hope this helps
regards
Frank
I tried this and apparently you cannot use when data-bound
scriptDataGridView.Rows.Insert(2, 1);
So, I am in trouble. I may have to redesign the entire project to
unbound mode.
"Frank Werner" wrote:
>Hello Chris,
please send me your code or describe your needs more detailed
regards
frank
>>http://msdn2.microsoft.com/en-us/lib...0f(VS.80).aspx Can
anyone help me with how to use this?
I am not sure whre to place the C# code they specify?
THanks
CM