Subject | Disconcerting grid column re-positioning effect with RowSelect=True |
---|---|
Author | andygarneruk |
Post date | 2005-09-14T22:56:56Z |
When a datasource has more columns than the grid can display,
horizontal scrolling is needed to bring the right most columns into
view.
But then on clicking a cell in one of these normally out of view
columns, the grid always cancels the horizontal scroll and displays
column 1 in the left most position. How can I stop the grid from
doing this, instead having it retain in view the columns the user has
scrolled to and clicked into please?
Thanks, Andy.
Here is my grid definition:
object grdCustomers: TIB_Grid
Left = 0
Top = 40
Width = 789
Height = 489
TreeOptions.NodeIndent = 25
CustomGlyphsSupplied = []
DataSource = dmDatCustomer.dtsCustomer
Align = alClient
OnDblClick = grdCustomersDblClick
ReadOnly = True
TabOrder = 1
RowSelect = True
OrderingColor = 16777168
end
IBO 4.5Ag
XP Pro SP2
horizontal scrolling is needed to bring the right most columns into
view.
But then on clicking a cell in one of these normally out of view
columns, the grid always cancels the horizontal scroll and displays
column 1 in the left most position. How can I stop the grid from
doing this, instead having it retain in view the columns the user has
scrolled to and clicked into please?
Thanks, Andy.
Here is my grid definition:
object grdCustomers: TIB_Grid
Left = 0
Top = 40
Width = 789
Height = 489
TreeOptions.NodeIndent = 25
CustomGlyphsSupplied = []
DataSource = dmDatCustomer.dtsCustomer
Align = alClient
OnDblClick = grdCustomersDblClick
ReadOnly = True
TabOrder = 1
RowSelect = True
OrderingColor = 16777168
end
IBO 4.5Ag
XP Pro SP2