Component One TrueDBGrid Control Problem

Posts   
 
    
T
User
Posts: 2
Joined: 26-May-2006
# Posted on: 26-May-2006 02:12:54   

I just starting usng LLBLgen on a new project. I originally did my datagrid testing with the standard visual studtio DataGridView control. I had no problems displaying the required data by dragging the collection component onto the form binding it with the datagridview control and adding/removing the fields as needed.

I execute the following code and the data displayed as expected.

Dim Customers As New ClientFileCollection() Customers.GetMulti(Nothing) DataGridView1.DataSource = Customers

When I do the exact same steps using the Component One Grid control, I always get the entire collection regardless of the fact I deleted unwanted colulmns.

Any Ideas how to solve this problem.

arschr
User
Posts: 894
Joined: 14-Dec-2003
# Posted on: 26-May-2006 12:24:12   

Are you using TrueDBGrid or FlexGrid?

The TrueDBGrid has Splitcollections that contain display columns, you can manipulate that collection to change what you display.

In the flexgrid, try settting the columns visible property to false.

T
User
Posts: 2
Joined: 26-May-2006
# Posted on: 26-May-2006 17:02:26   

I'm using TrueDB Grid.

So are you saying I need to handle the display columns within the code itself opposed to design time like Visual Studio DataGridView? (Sorry I'm new to .NET programming).