User Profile

Collapse

Profile Sidebar

Collapse
lyasta
lyasta
Last Activity: May 26 '11, 12:50 PM
Joined: Aug 6 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • lyasta
    started a topic ComboBox Databinding and Scroll issue

    ComboBox Databinding and Scroll issue

    Hello,

    I have a form with MyLabel and MyComboBox on it. In design time I set DataSource for MyComboBox to MyDataSet1, DisplayMember to TF_BADGES.Offic er_Name and ValueMember to TF_BADGES.Offic er_ID. TF_BADGES is the only table in my dataset with two columns (Officer_ID, Officer_Name). Here is code from my application:
    Code:
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ...
    See more | Go to post

  • Frinavale,
    Originally I didn't think that "WITH" was my problem. After I stopped using it (because I thought that it was giving me a hard time) I made a bunch of other changes to the program and at this point can’t repopulate my error. Still confused on what exactly happened...
    Sorry for wasting your time...
    See more | Go to post

    Leave a comment:


  • Thank you for reply, but I didn't exactly have a problem with adding new row to the table in dataset. I figured out what I was doing wrong. It was "WITH" operator:
    Code:
    With newRow
    If (.Owner_Name = Me.DsMain1.TF_INFO(0).Owner_Name)Then
    'this would always give me True because 
    'Me.DsMain1.TF_INFO(0).Owner_Name was recognized as
    'newRow's Owner_Name and not value from the actual table row
    End
    ...
    See more | Go to post

    Leave a comment:


  • tableadapter.fill(datatable) fills the row that was not added to the datatable

    Hi,
    I am trying to add NewRow to the database by using datatable in dataset, but before I do that I want to make sure that row is not already there. I create new row for the datatable I am working with, fill it with information. I fill datatable with the row from database that has the same primary key as my NewRow by using tableadapter.fi ll method, but when I do that my NewRow that was never added to the datatable is filled with information...
    See more | Go to post
No activity results to display
Show More
Working...