Subject: ListControl
Prev Next
You are not authorized to post a reply.

Author Messages
Allan GUser is Offline

Posts:7

09/08/2008 5:33 AM  
Hi
I am using an Interprise ListControl that is bound to a SQL View. All works fine but I need to adjust the column widths etc.
I also need to alter the order the column appear in at runtime. I know that this can be set at the SQL View but this isn't what I need.
Is there anyway that I can also access the grid's view so I can capture the row selected, not a double click event of the List Control

Cheers
Pete Ian AUser is Offline

Posts:26

09/10/2008 9:56 AM  
Hi,

Regarding the column width of each column on the ListControl, once it is be bound by providing the following properties: TableName = your view name and DisplayField = to your primary key or the first column of your ListControl. The column width is dependent on the length of your data on each column.

Ordering the columns on the ListControl at runtime is also dependent on the datadictionary. On the datadiction kindy click on your view and try to look on your right side window there a column sort order. That sort order column is the order of your view on the ListControl.

Yes, you can capture the row selected on your ListControl. Kindly look for the event rowselected, and Kindly used the erow paramater to get the selected row of the grid.

Hope this would help

Pete
Allan GUser is Offline

Posts:7

09/11/2008 7:53 AM  

Figured it out how to alter the widths of a listview column.
Found out about the SearchGrid within the listcontrol

listControl1.SearchGrid.VisibleColumnsΕ].Width = 250;


You are not authorized to post a reply.



ActiveForums 3.7
Privacy Statement  |  Terms Of Use
Interprise Software Systems International Inc.