| | |
Blank Record & Open Form From Datagrid
Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
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 bitmap box broadcast c# check checkbox client combobox control conversion csharp database datagrid datagridview dataset datetime dbconnection decryption degrees design developer draganddrop drawing encryption enum eventhandlers excel file firefox focus form format forms function gdi+ grantorrevokepermissionthroughc#.net hospitalmanagementsystem image input install interface java libraries list loop marshalbyrefobject math mouseclick movingimage mysql netcfsvcutil.exe numeric operator path photoshop php picturebox pixelinversion platform polynomial post programming properties radians read regex remote remoting richtextbox server sleep socket sql statistics string stringformatting study system.servicemodel table tcpclientchannel text textbox thread time timer update usb usercontrol validation visualstudio webbrowser winforms wpf wpfc# xml





