Help regarding DataGrid
-
I m using dataGrid control in my application. I want user to add records using Data Grid. Right now my Grid has 5 columns. Problem is that if user fills only one column and click add button, Grid does not add that row. Infact if i click on some other control that row from grid just disappeared. But if i fill all colums then a blank row appear down that row. and now if i click add button, this row will be added. Now i just want a row to be added if i only fill one column. What should i do? Day by Day Everyone is moving towards graveyard
-
I m using dataGrid control in my application. I want user to add records using Data Grid. Right now my Grid has 5 columns. Problem is that if user fills only one column and click add button, Grid does not add that row. Infact if i click on some other control that row from grid just disappeared. But if i fill all colums then a blank row appear down that row. and now if i click add button, this row will be added. Now i just want a row to be added if i only fill one column. What should i do? Day by Day Everyone is moving towards graveyard
Hello, This is because the new row has not been committed in the datatable/datasource which you are using with DataGrid. You can write code in CurrentCellChanged event handler to assure that the changes you made in the datagrid are saved when you leave the cell. HTH. Cheers. Maqsood Ahmed - MCAD.net Kolachi Advanced Technologies http://www.kolachi.net