| | |
Blank Record & Open Form From Datagrid
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
I have two issues;
If I create a new datatable and use a datagrid on my form, when I run the application there is this new, blank record already there. If I try to enter anything in it, it won't save. I have to actually click to create a new record (which I can edit and save), but this blank record is still there. The same is true if I use discrete controls bound to the datatable.
Any ideas on why this is happening, and how to make it stop?
Also, if I have two forms, one with a datagrid and the other with discrete controls (details), bound to the same database, how can I click on a record in the grid view and have it open the detail form with the clicked record displaying? I can get the details form to open, but not with the selected record displaying.
If I create a new datatable and use a datagrid on my form, when I run the application there is this new, blank record already there. If I try to enter anything in it, it won't save. I have to actually click to create a new record (which I can edit and save), but this blank record is still there. The same is true if I use discrete controls bound to the datatable.
Any ideas on why this is happening, and how to make it stop?
Also, if I have two forms, one with a datagrid and the other with discrete controls (details), bound to the same database, how can I click on a record in the grid view and have it open the detail form with the clicked record displaying? I can get the details form to open, but not with the selected record displaying.
:!: In The Beginning, God; In The End, God. In between, believe whatever you like. :)
![]() |
Similar Threads
- how to open a pdf file using form in access and creation of browser button (Visual Basic 4 / 5 / 6)
- Two Issues With Access Database App (MS Access and FileMaker Pro)
- PHP e-mail copy to viewer themselves ??? (PHP)
- This Blank Database Record! (C#)
- To display an icon in a datagrid (VB.NET)
- How can I refresh DataBase without closing Form Attached with my Coding (Visual Basic 4 / 5 / 6)
- Populating a fields on a form base on a selected item from a droplist. (PHP)
- IE problem with "about:blank" & "search for..." (Viruses, Spyware and other Nasties)
Other Threads in the C# Forum
- Previous Thread: Is ther a other way??(SharpDevelop ActiveX)
- Next Thread: C# books?
| Thread Tools | Search this Thread |
.net access algorithm array asp.net barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom database databaseconnection datagrid datagridview dataset datetime dbconnection degrees design development draganddrop drawing encryption enum event eventhandlers excel file firefox form format forms function gdi+ grantorrevokepermissionthroughc#.net httpwebrequest image index input install java label libraries list listbox loop mandelbrot marshalbyrefobject math mouseclick movingimage mysql mysql.data.client operator path photoshop php picturebox pixelinversion post programming radians regex remoting resourcefile richtextbox server sleep socket sql statistics stream string study system.servicemodel table tcpclientchannel text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf wpfc# xml





