•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 397,841 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,571 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser:
Views: 920 | Replies: 8
![]() |
| |
•
•
Join Date: May 2008
Posts: 7
Reputation:
Rep Power: 0
Solved Threads: 0
DGV.Rows.add();
DataTable.rows.add();
•
•
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,123
Reputation:
Rep Power: 3
Solved Threads: 47
Could I enquire as to why you would want to do this? Give this a try:
I am not sure if this will work but give it a try - let me know how it goes!
•
•
•
•
datagrid1.Rows.Add(new object[]{null,null});
I am not sure if this will work but give it a try - let me know how it goes!
Last edited by majestic0110 : May 13th, 2008 at 5:26 pm.
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
•
•
Join Date: May 2008
Posts: 15
Reputation:
Rep Power: 1
Solved Threads: 0
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!
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!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C# Marketplace
Similar Threads
- Adding a new row in a Datagrid ??????????? (C#)
- Adding new row in DataGrid (C#)
- Dynamically add rows in datagrid (ASP.NET)
- How to add dynamic row in datagrid? (ASP.NET)
- start new row in datagrid, msflexgrid (Visual Basic 4 / 5 / 6)
- How to prevent moving to any row of the datagrid if there is error while editing. (VB.NET)
- Adding row in datagrid (ASP.NET)
- Deleting a Row From A DataGrid (VB.NET)
Other Threads in the C# Forum
- Previous Thread: Crystal Report - How Do Make a Report which is User designed?
- Next Thread: can you help me here!!



Hybrid Mode