No problem while inserting a row at end.
but my requirement is something diffeernt. I would like to add record in between.
I have databoundgrid with 10record
Click on ''Add Record'' button it should add the record. I have seen many sample where record will always be inserted at the end. But my reqiremnt is i need to insert record in between.
I am using DataTable
Here is the snipet.
frmInsertRows insertRow = new frmInsertRows();
if (insertRow.ShowDialog() == DialogResult.OK)
int curPos = this.dbgrdSummaryMaster.Binder.CurrentPosition + 1;
int numRows = 10;
//Check for every column in the Column
for (int colCount=0;colCount
ADAdministrator Syncfusion Team July 6, 2004 03:30 AM
You have to to more more to get the inserts to function well. There is a sample in this thread.
SASatishJuly 6, 2004 04:25 AM
I have tried this code. Not working.
My problem is I am able to insert a record in between the grid but when i start typing and click on Enter. The text whatever I enterd in that cell will go last row. why is it??
>You have to to more more to get the inserts to function well. There is a sample in this thread.
ADAdministrator Syncfusion Team July 6, 2004 04:46 AM
The sample in that thread allows you to insert a new row. It has a RowEnter event handler that is not in the code you listed. Did you add a RowEnter event like the one in the thread?
Can you post the sample using the suggested forum thread code not working?