Hi ram_krishna,
The code below cannot work if the DataGridView is bound:
this.ratesDataGridView.Rows.Add();
You can get the data source and add a new row via the data source. This is a code snippet:
DataTable dt = this.ratesDataGridView.DataSource as DataTable;
dt.Rows.Add(dt.NewRow());
Let me know if this helps.
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.