|
HI
I have a datagrid connected to a 'Select query' in a Data-Environment.
In my application I am adding new records to a table (the table in the select query) and then updating my datagrid using refresh. But the new record does not appear in the datagrid.
How do I make the new record/s appear ?
Can somebody please help me ?
- Lostris
|
|
|
|
|
I need to create editable form when a row of selected items is selected.
For example:
Private Sub flex_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles flex.Click
Dim objRow As Integer = flex.MouseRow
flex.Rows(objRow).Selected = True
'MessageBox.Show(objRow)
End Sub
objRow contains the value of the row that is clicked however now how should I get the values of that given row and then
pass them to the form.
Thank you for any ideas.
matt
|
|
|
|
|
nodx=Treeview1.Nodes.Add("key","Text")
How to get the "key" ?
Thanks!
vs.net 2005 beta 2
|
|
|
|
|
|
I wanna study Windows API,but i don't know how and where do i start......somebody give me some advice......thanks......
i like pRograM......
|
|
|
|
|
|
Sometimes Visual Studio REALLY frustrates me. I've got a problem that just started occurring in the last day or so and I have no idea why, nor do I know how to fix it. This is the error I'm getting:
An exception occurred while trying to create an instance of ECM.frmStdMdiChild. The exception was "Object reference not set to an instance of an object.".
frmStdMdiChild is a class that inherits from System.Windows.Forms.Form. All of the children forms in the project are of this type. I needed to expand upon the properties provided in the standard Form.
What's confusing is that if I look at the forms that it is complaining about, the only reference to frmStdMdiChild is in the Inherits line. The program compiles and runs fine. No problems that I can see. However, I cannot pull up the form designer on any of the children forms. It just gives me a screen with a red X, displays the message shown above, and tells me that has to be fixed before I can use the designer.
I have tried commenting out almost everything in the child form (including all of the "Windows Form Designer generated code" section, commented everything out in the frmStdMdiChild, and even tried changing the Inherits on the child form back to System.Windows.Forms.Form. All to no avail. At this point I am very much open to suggestions.
--In a world without fences, who needs Gates?
|
|
|
|
|
Hello. I have a datagrid with a dataset as datasource. I have a problem when I am trying sort the datagrid. I want sort the dataset at the same time for to know where the row clicked of the datagrid is in the dataset.
waiting help...
Thanks
|
|
|
|
|
Hi folks, I need your help!
I'm using VB to make some programming. Right now my project has a bunch of forms and my database got corrupted, so I almost lost my code.
The thing is I need a macro or similar way to 'EXPORT' my code (in VB's .cls format) when I start coding. And I want it for every form of the project (that's way I wanted the automation). Just in case I need it later (kind of backup).
Is it such a way?
Thanks in advance!
|
|
|
|
|
Just copy the files. They're all just text files, so I don't see what the problem is?
How does this database being corrupted figure into this?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Is this a VBA in MS Access sort of thing?
Jon
|
|
|
|
|
Right to the point. It's a VBA in Access.
I could copy the files (of course they're just text) but I've got quite a lot of file and it would a pain to copy all of them manually. So I want some kind of macro to automate the proccess!
Thanks.
|
|
|
|
|
Well, as nobody could help me, here's the answer I found by myself.
Just use this:
For i = 1 To Application.VBE.ActiveVBProject.VBComponents.Count
Application.VBE.ActiveVBProject.VBComponents(i).Export "file" & i & ".txt"
next i
This way all forms, modules, classes, etc. are saved on the local path in plain text format.
Sweet and easy, uh?
Hope it helps out there!
|
|
|
|
|
In order to avoid a null DateTime field in my ACCESS database table, how do I fill it with an 'empty' Date or DateTime string?
Thank you for your help in advance.
|
|
|
|
|
There's no such thing as an "Empty" date/time field in Access. It either has a valid date/time in it or it's Null. Since your database is doesn't allow Nulls, the only recourse you have is to put in a known bogus, but valid, date/time, such as Jan 1, 1970.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I could not delete the rows
using the delete key.
I can delete the rows in other way
but I prees the delete key in datagrid
nothing to happen
property Readonly = True
KeyDown
KeyPress
KeyUP
this keys are not working in datagrid
OS : XP
visualstudio: 2003
VB.net
Continue...
|
|
|
|
|
I may be wrong, but if you are setting the property Readonly = True, than you shouldn't be able to change the data.
Perhaps a code sample or more detail of what you are trying to do?
|
|
|
|
|
Of course those keys don't work. You set the ReadOnly property of the DataGrid to True! How can you expect to delete something from that which you specified can't be modified?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I keep getting the following error when trying to delete a row from a dataset using a datagrid (specifically the last row in the datagrid) :
An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll
Additional information: Object reference not set to an instance of an object.
Does anyone have a tried and tested method for adding,updating,and deleting rows from a dataset using a datagrid? I have found alot of information, and people seem to have had the same problem, but have not found a solution.
using visual basic .net 2003
|
|
|
|
|
Dim row As Integer
Dim str As String
row = DataGrid1.CurrentRowIndex
DataGrid1.Select(row)
Dim myTable As DataTable
myTable = DataGrid1.DataSource
myTable.Rows.RemoveAt(row)
u count how many rows are presented
the rows less than 0 exit the fucntion or exit sub
Continue...
|
|
|
|
|
Does anyone know of a full tutorial on the the datagrid and databinding?
My datagrid still will not delete the last record without crashing.
I think it has to do with the primary key of the database now though...
OleDbDataAdapter1.FillSchema(ds, SchemaType.Source, "spray_log")
OleDbDataAdapter1.ContinueUpdateOnError = True
OleDbDataAdapter1.Fill(ds)
ds.AcceptChanges()
The first line is supposed to keep my autoincrement of the IDNUM working, but when I look at it (IDNUM) in my datagrid, it will sometimes go from 2348 to 2350 instead of 2349. I can see why the command builder would have a hard time.
|
|
|
|
|
Could someone point me towards a good tutorial on troubleshooting/debugging?
|
|
|
|
|
|
|
hi guys,
I have a question, how to make a chat messenger like yahoo messenger or msn messenger and connected it with the server that use sql server ?
How to make the connection between the client that use the application program (messenger) and the server that contains the sql server ?
How to make this by using VB.Net ?
what is the starting point (what the things that i must know to perform this)?
thanks for all
|
|
|
|