guyz,
i have a windows form class called "fuel" in this class i have used datagridview which is called "dataGridView1" . It shows all the entries i insert to the database by using form "fuel".At there it woks fine. there is a comboBox which is called as cmbFuelType and when i select the fuel as oil_2T it direct to an another windows form. Then the problem is i can`t get update that dataGridView1 from oil_2T form...
User Profile
Collapse
-
hey christian,
it workd pretty nicely....thnx
regards
Isitha -
Invalid attempt to read when no data is present.
Code:String SQL1 = @ " select EmpID,ShiftID,EndReading from FinalCalc]"; DBHandlingqqq obj = new DBHandlingqqq(); SqlDataReader myDataReaderWW = obj.isExist(SQL1); String dataemp = myDataReaderWW.GetString(0);
Here`s the DBHandlingqqq class....
Code:class DBHandlingqqq { SqlConnection conn = new SqlConnection("Data Source=ISIM-PC\\SQLEXPRESS;Initial
-
guyz sry 4 da late reply,
bentley :- thanx 4 ur help and i saw ur dock test article n downloaded ur examples...hope 2 use them in my projects....and also i gonna report microsoft abt U....suspect 4 software crimes...ha! ha! [i jst kidding]
@subin :- thnx guy it workd pretty nice...n thnx agn 4 accepting my frnd req.Leave a comment:
-
can`t use && in if statement
Code:if (myDataReader.GetString(0) = empID && myDataReader.GetString(1) = shiftID && myDataReader.GetFloat(2) = Final11)
here empID ,shiftID are originally int values in the FINALCALC table (those are the values to be expected to retrieve by myDataReader.Ge tString(0) n myDataReader.Ge tString(1)). But variable empID and shiftID are String variables which i take from two input... -
cant execute the combobox
when i try to send selected value of my combo box as "10 to 6" to the database it gives the following error.but the ShiftName column is not a primary key....what shud i do nw.
"Column 'ShiftName' is constrained to be unique. Value '10 to 6' is already present." -
thnx CHRISTIAN it worked pretty well n i ve made some changes to my DB also......hav a gud day..Leave a comment:
-
to EARNEST
thnx EARNEST....i think da problem is with my database table....bt still i cudn`t get it resolved....thn x agnLeave a comment:
-
when i try to convert a value member to int32 says wrong data type
Code:String empID = cmbEmp.ValueMember.ToString(); int empIDint = Convert.ToInt16(empID);
"when converting a string to date time, parse the string to take the date before putting each variable into the datetime object....."
guyz i dont understand what to do now...
No activity results to display
Show More
Leave a comment: