Search:

Type: Posts; User: LeoJb

Page 1 of 2 1 2

Search: Search took 0.04 seconds.

  1. Replies
    14
    Views
    7,673

    VS 2015 Re: Binding data from DataGridView To Textbox

    Yeah that's right paulg4ije.

    I'm trying what .paul. provide but still no result. :(
  2. Replies
    14
    Views
    7,673

    VS 2015 Re: Binding data from DataGridView To Textbox

    Thank you .paul. for your reply.

    The Data grid view and the text boxes are in the same form, so it will remain the same code anyway?

    Thanks
  3. Replies
    14
    Views
    7,673

    VS 2015 Re: Binding data from DataGridView To Textbox

    Thank you for your reply both of you.

    @techgnome Do you have any sample code?

    Thanks again.
  4. Replies
    14
    Views
    7,673

    VS 2015 Binding data from DataGridView To Textbox

    Hello,

    I have a table called "EmployeeMainFile" and i have a lot of columns. In my Data Grid view I'm only displaying the EmpCode, EmpName and PassportNo.

    My question is if I clicked on one...
  5. Replies
    0
    Views
    2,211

    VS 2015 Set default data Datagridview column

    Hello,

    I have a Data Grid view with Columns, i want the column UProertyNo to have a default value from a text box.
    I'm showing the UPropertyNo Column to enter the data manually, but actually i...
  6. VS 2015 Re: Check If Date is between period and do calculations

    Thanks a lot si_the_geek.

    I have changed a little bit in the code which you gave me and its solved.

    Thanks for giving me this idea.
  7. VS 2015 [RESOLVED] Check If Date is between period and do calculations

    Hello,

    I have a Table in SQL DB called VNewEntries and the columns are: ID, EmpNo, AppointmentDate, VFrom, VTo, VBasicSalary, VAllowances, DeservedBalanceDays, DeservedBalanceKD.

    What I want is...
  8. VS 2015 Re: How to not insert the null row in data grid view to sql table vb.net

    Thank you. it is solved.
  9. VS 2015 [RESOLVED] How to not insert the null row in data grid view to sql table vb.net

    I have a data grid view and i insert data in it. When i type a row it automatically open a new row, That's good, but it inserts the null row to the database.

    how to not insert it in the database....
  10. VS 2015 Re: Get data from two different tables into one datagridview

    In the original post the Employee No "1" has three records 200,500 and 400, i want to get the 400 because it is Max(ID) not the 500(because it is the max salary.
  11. VS 2015 Re: Get data from two different tables into one datagridview

    Thank you jmcilhinney for your reply.
    Sorry for the last posts but i'm new in this.


    The above solution was good, but actually what i want to get is the max salary based in ID on EmployeeSalary,...
  12. VS 2015 Get data from two different tables into one datagridview

    Hello,

    I have two tables, First is "EmployeeMainFile" and the second is "EmployeeSalary".
    In "EmployeeMainFile" i have for example the following records:



    ID
    EmpNo
    Name
  13. Replies
    7
    Views
    906

    VS 2015 Re: Get data from two different tables

    The Foreign key is EmpSNo
  14. Replies
    7
    Views
    906

    VS 2015 Re: Get data from two different tables

    The EmpSNo is primary with ID, so i have two primary keys in EmpSalary table.
  15. Replies
    7
    Views
    906

    VS 2015 Re: Get data from two different tables

    Thank you for your reply.
    EmpNo is primary key in EmployeeMainFile
    EmpSNo is primary key in EmpSalary.

    The Employee and Emp its just a mistake from me, you can consider the EmpSalary as...
  16. Replies
    7
    Views
    906

    VS 2015 Get data from two different tables

    Hello,

    I have two tables, First is "EmployeeMainFile" and the second is "EmpSalary".
    In "EmployeeMainFile" i have for example the following records:



    ID
    EmpNo
    Name
  17. VS 2015 Re: Index was out of range. must be non-negative and less than the size of the collec

    Thanks a lot PlausiblyDamp and si_the_geek.

    It is solved. :)
  18. VS 2015 Re: Index was out of range. must be non-negative and less than the size of the collec

    Thank you for your reply PlausiblyDamp.

    There is one row for one employee and others no rows.

    For EmpSNo it is NVarChar because the Employee No will take characters, for example "ABC123".
  19. VS 2015 [RESOLVED] Index was out of range. must be non-negative and less than the size of the collection

    Hello,
    I have a form, i put the below code on Form Load, but when i open it and there is no row in the data grid view i get the following error:
    "index was out of range. must be non-negative and...
  20. Thread: Vb.net and SQL

    by LeoJb
    Replies
    1
    Views
    517

    Vb.net and SQL

    Hi,

    I have a program made from vb.net and SQL database, how can i install it on client's PC? Should i install the SQL server on the client's PC? and if there is another way tell me.

    Thanks.
  21. Replies
    5
    Views
    1,639

    Re: Can not insert Arabic values

    Yes, both are solved.

    Thank you so much.
  22. Replies
    5
    Views
    1,639

    Re: Can not insert Arabic values

    I'm using this for update




    Try
    cmd.Connection = con
    con.Open()

    cmd.CommandText = "UPDATE JobTitle SET JobTitleA = '" & txt_JobTitleA.Text &...
  23. Replies
    5
    Views
    1,639

    Re: Can not insert Arabic values

    Thank you for your reply.

    It is already nvarchar. But the issue that i was using the above code before and it was ok.

    So What about Updating, how to update the record?
  24. Replies
    5
    Views
    1,639

    [RESOLVED] Can not insert Arabic values

    Hello,

    I have a problem, it is when i want to insert Arabic value from Visual Studio to an SQL database it is showing ???? or NULL.

    I'm using the following code:



    Try
    ...
  25. Replies
    0
    Views
    440

    VS 2010 Can not insert Arabic values

    Hello,

    I have a problem, it is when i want to insert Arabic value from Visual Studio to an SQL database it is showing ???? or NULL.

    I'm using the following code:



    Try
    ...
  26. VS 2010 Preview data in Crystal report from Gridview

    Hello,

    I have a crystal report and a gridview. All i want to display only the current rows in the gridview.

    I execute the below code, but i got an error "Unable to cast object of type...
  27. VS 2010 Preview data in Crystal report from a gridview

    Hello,

    I have a crystal report and a gridview. All i want to display only the current rows in the gridview.

    I execute the below code, but i got an error "Unable to cast object of type...
  28. Thread: Gridview Data

    by LeoJb
    Replies
    17
    Views
    1,915

    VS 2010 Re: Gridview Data

    But in this way, it will only show the data in the .txt file not from the database!
  29. Thread: Gridview Data

    by LeoJb
    Replies
    17
    Views
    1,915

    VS 2010 Re: Gridview Data

    Thank you.

    Now when i want to open the Form1 it gives me "Could not find the file 'C:\Users\..\..\..\bin\debug\People.txt'"



    Dim dt =
    (From line In...
  30. Thread: Gridview Data

    by LeoJb
    Replies
    17
    Views
    1,915

    VS 2010 Re: Gridview Data

    Ok i did it. Still on thing, in the below it gives me "Type 'ChildForm' is not defined"



    Private Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
    ...
  31. Thread: Gridview Data

    by LeoJb
    Replies
    17
    Views
    1,915

    VS 2010 Re: Gridview Data

    Sorry for disturbing you, but i couldn't find ToDataTable.

    What to do exactly?
  32. Thread: Gridview Data

    by LeoJb
    Replies
    17
    Views
    1,915

    VS 2010 Re: Gridview Data

    So Shall i download it from the link that you have provided it?
  33. Thread: Gridview Data

    by LeoJb
    Replies
    17
    Views
    1,915

    VS 2010 Re: Gridview Data

    I wrote kevininstructor’s example, but it gives me "'TDataTable' is not a member of 'System.Collections.Generic.IEnumerable(Of<anonymouse type>)'" here:



    Dim dt =
    (From line In...
  34. Thread: Gridview Data

    by LeoJb
    Replies
    17
    Views
    1,915

    VS 2010 Re: Gridview Data

    Thank you kevininstructor for your reply.

    The output is good as you have shown up, but can i get VS2010 code?
  35. Thread: Gridview Data

    by LeoJb
    Replies
    17
    Views
    1,915

    VS 2010 Re: Gridview Data

    Thank you IanRyder for your reply.

    For the second code, where i should put it?
  36. Thread: Gridview Data

    by LeoJb
    Replies
    17
    Views
    1,915

    VS 2010 Gridview Data

    Hi,

    I have 2 datagridview.
    DataGridView1 in Form1 and DataGridView2 in Form2.

    In DataGridView1 in Form1 i have data and one column contains Checkbox.

    What i want is when i click the...
  37. Thread: Gridview Data

    by LeoJb
    Replies
    6
    Views
    1,024

    VS 2010 Re: Gridview Data

    Thank you for the reply.

    i don't want to bound it, because in one form i will enter the data, then in an another form in a datagridview i will select the checkbox if it is true or false.
  38. Thread: Gridview Data

    by LeoJb
    Replies
    6
    Views
    1,024

    VS 2010 Re: Gridview Data

    But if it is not bounded?
  39. Thread: Gridview Data

    by LeoJb
    Replies
    6
    Views
    1,024

    VS 2010 Re: Gridview Data

    Thank you dday9 for your reply.

    I guess the code is ok. but how to get from DataGridView.
  40. Thread: Gridview Data

    by LeoJb
    Replies
    6
    Views
    1,024

    VS 2010 Gridview Data

    Hi,

    I have 2 datagridview.
    DataGridView1 in Form1 and DataGridView2 in Form2.

    In DataGridView1 in Form1 i have data and one column contains Checkbox.

    What i want is when i click the...
Results 1 to 40 of 51
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width