1:n relationship

Posts   
 
    
Karlang
User
Posts: 6
Joined: 08-Mar-2006
# Posted on: 28-Mar-2006 06:29:40   

Hi i am new to LLBL i would appriceate if someone could help me with this.

I have Employee and EmployeePhone Table

EmployeePhone has Type,PhoneNumber,Notes and ID

i have the following code for my dataGridView and it works fine and displays all fields.

dgvEmployeePhone=Employee.EmployeePhone ;

but how do i only show the Type and PhoneNumber, i don't want to show Notes and ID on the DataGrid view.

Thanks

JimHugh
User
Posts: 191
Joined: 16-Nov-2005
# Posted on: 28-Mar-2006 07:30:00   

In VS2005 Form Desgin View, goto the Columns property of the DataGridView.

Highlight the appropriate columns and set the Visible property = false.