Hi dealwi8me, The following are the answer to your three questions. If I misunderstood your meaning, please feel free to tell me. 1. You can use dataGridView1.CurrentRow property. It will return the row you are currently selected. 2. RowsAdded event can let you detect when user add a new row to the DataGridview. When you use databinding, you can look up these information in the underline datasource, e.g. A DataTable, the edited row's RowState is Modified while the newly added row's RowState is Added. 3. When you use databinding, you need to remove row from the datasource, e.g. DataTable.Rows.Remove method. When you use unbound situation, you can use DataGridView.Rows.Remove method. Please tell me if I misunderstood your requirement. Sincerely, Kira Qian Please mark the replies as answers if they help and unmark if they don't.- Marked As Answer bydealwi8me Thursday, August 27, 2009 8:13 AM
-
|