![]() |
| ||
| How to add a new row to a datagrid Hi, Can anybody help me to add a blank row into a datagrid? Thank you! |
| ||
| Re: How to add a new row to a datagrid DGV.Rows.add(); But if the datagrid is binded you need to add the row to the datasource, NOT in the DGV DataTable.rows.add(); |
| ||
| Re: How to add a new row to a datagrid DGV.Rows.add();But if the datagrid is binded you need to add the row to the datasource, NOT in the DGV DataTable.rows.add(); |
| ||
| Re: How to add a new row to a datagrid Could I enquire as to why you would want to do this? Give this a try: Quote:
I am not sure if this will work but give it a try - let me know how it goes! |
| ||
| Re: How to add a new row to a datagrid Thank you to all for your answers. My datagrid is binded to an object. I am adding an new empty collection to the object before to bind it to the datagrid. I have a new empty row into my datagrid, but now the problem is that the id the item is null and I cannot update or delete it. Can you help me with that? Thank you! |
| ||
| Re: How to add a new row to a datagrid Hooraay , I added a new object on Update and Delete procedures and now it works fine. Thank you for your replay! |
| ||
| Re: How to add a new row to a datagrid What object ? What Id What code Difficult to say anything without a little more details .. |
| ||
| Re: How to add a new row to a datagrid Set the all property of datagrid |
| ||
| Re: How to add a new row to a datagrid BindingContext[datasetname,"table"].newrow(); |
| All times are GMT -4. The time now is 11:43 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC