Hello everyone, i'm having a problem on how to populate my gridview since the gridview's are not within the same Form.
Let me try to explain how the form is setup. Let's imagine i have a Button1, then Two Panels. Upon clicking the button1, i will add a custom control which contains a gridview inside of those two panels. Just like panel1.controls .add(controlToB eAdded).
Everything works fine except when populating the...
User Profile
Collapse
-
Populating a GridView Inside a UserControl
-
SQL Bulk Copy AutoMapping in VB.NET
I have this simple code on VB.NET that inserts data from Excel Spreed Sheet to SQL Server database, now i want the data to be inserted on my database automatically without manually calling the columnmapping.a dd. Basically, i will insert the data base on the header row on the excel spread sheet.
Here is my code..
Code:Using connection As New OleDbConnection(Excelconnection) Dim cmd1 As New OleDbCommand("SELECT
-
Dividing Project in Multiple Executables
Hello, we have a group project in school and we asked to make a simple system, my problem is how do I divide the system into multiple executabls so that I will not be the only one doing the whole thing since this is a group project, maybe one of my classmate will do the updating of the application, I will do the login form, the other one will do the CRUD and so on and so forth.. Thank you. -
Align integer to Left on Gridview
Hello, how to aligt the integer values to the left. Im using Devexpress Gridview. ... -
MDI form
Hello bytes, i am trying to call a form using keydown event and it works if the active form is not an MDI container but how if the active form is an MDI container itself?
Thanks -
i am now using app.config. Thanks btw. Cheers -
My server version is 12.0.2 and i tried to created a testDB on sql server 10.50.400 so i am expecting the database version to be 660/661. Thanks for helping me....Leave a comment:
-
Thanks for the reply CK but the query gave me a null value.
I tried this query.Code:SELECT DatabaseProperty ('TestDB', '660'); SELECT DatabaseProperty ('TestDB', 660);
i also triedCode:SELECT DatabaseProperty ('TestDB', 'version');
Leave a comment:
-
Internal Database Version
hello, do you know how to determine the database version of a database on sql server management studio for some compatibility reasons because not all of the databases are created using the version of sql server i am currently running. some of them are attached using backup. Thanks. -
Saving Database Connection using Config.ini
Ive been searching tutorial on youtube and other known sites on how to save/read the database connection on the config.ini file. Lets say i have this connection,
Code:SQLServer:192.168.1.2 UserName:sa Password:1234 DatabaseName:SampleDB
-
um, i tried to input 1 and expecting that the compiler will give me a false value but give me an error instead.
System.FormatEx ception: String was not recognized as a valid Boolean.
at System.Boolean. Parse(String value)
at System.Convert. ToBoolean(Strin g value)Leave a comment:
-
Integer to boolean convertion
Good evening, ive written a simple code but throws an error in C#, why is this happen.
Code:bool inputValue = Convert.ToBoolean(Console.ReadLine()); Console.WriteLine(inputvalue); Console.ReadLine();
-
Updating a value if cell is DBNull
hi, i want to know how to implement this one, im trying to do a login page in vb.net and after 3 consecutive login attempts, the username will be locked and will not be able to login to the system.
inside my database, i have three columns, the username, password, and loginattempst column.
Code:Dim cmd As New SqlCommand("select * from users where username=@username", conn) cmd.Parameters.AddWithValue("@username",
-
wow. thumbs up for the explanation. by the way, im using datareader in reading data, is that the best to use.Leave a comment:
-
-
Tables is not a member of System.data.datatable
hi again, im stuck with this error. please help me.... -
@frinavale
i am reading the articles @home&learn website and i found it different from yours, here the way they did on how to update data on database
Code:Dim cb As New OleDb.OleDbCommandBuilder(da) ds.Tables("Denden").Rows(inc).Item(1) = TextBox1.Text ds.Tables("Denden").Rows(inc).Item(2) = TextBox2.Text da.Update(ds, "Denden")
Leave a comment:
-
im just trying if it can be done sir. im just experimenting with them. thank you for helping me out.Leave a comment:
-
Systax Error (Missing Operator)
hi im reinventing a code myself but when i tried to run it didnt work as expected. i dont want to copy all the one ive downloaded so i made it a smaller by reducing the control use and not using search command.
so heres my very simple code
Code:Private Sub loadrecord() Dim conn As New OleDbConnection(Get_Constring) Dim cmd As New OleDbCommand Dim dr As OleDbDataReader
-
Converting Integer to Double
i'm on my way on learning a new language vb .net and i have a hard time figuring out what might be the solution. Heres my code.
Code:Dim x as integer = 4 Dim y as integer = 8 Dim z As Integer = x / y ' i could just declare z as double if i want to but i dont want to do that ' i also tried to use convert to double 'z = Convert.ToDouble(z) but return 0 as result
No activity results to display
Show More
Leave a comment: