User Profile

Collapse

Profile Sidebar

Collapse
isitha
isitha
Last Activity: Jul 15 '11, 03:13 PM
Joined: Dec 15 '10
Location: Colombo , Sri lanka
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • how to update/refresh a dataGridView in a class by a different class

    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...
    See more | Go to post

  • hey christian,
    it workd pretty nicely....thnx

    regards
    Isitha
    See more | Go to post

    Leave a comment:


  • isitha
    started a topic Invalid attempt to read when no data is present.

    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
    ...
    See more | Go to post

  • isitha
    replied to can`t use && in if statement
    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.
    See more | Go to post

    Leave a comment:


  • isitha
    started a topic can`t use && in if statement

    can`t use && in if statement

    Code:
     
     if (myDataReader.GetString(0) = empID && myDataReader.GetString(1) = shiftID && myDataReader.GetFloat(2) = Final11)
    guyz y cant i do these??
    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...
    See more | Go to post

  • isitha
    started a topic cant execute the combobox

    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."
    See more | Go to post

  • thnx CHRISTIAN it worked pretty well n i ve made some changes to my DB also......hav a gud day..
    See more | Go to post

    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 agn
    See more | Go to post

    Leave 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);
    This`s the error i get "Input string was not in a correct format."
    "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...
    See more | Go to post
No activity results to display
Show More
Working...