You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
Pages: 1
Topic closed
How can I programmatically set the horizontal scroll bars visible?
Here are screen shots of the problem.
Here is the default startup mode:
the horizontal scroll bar is not visible.
Now i have to slide it out to make it visible.
I would like to set the properties of the scroll bars and the up/down, left right scroll buttons ?
It is possible to scale the spreadsheet down to get more of a big sheet in a little control aperture (the grid/screen area available to the control)
Offline
I found the solution in the xml settings.
<ReoGrid:ReoGridControl x:Name="myReoGrid"
HorizontalAlignment="Right"
Height="845"
Margin="-211,-204,470,-207"
VerticalAlignment="center"
Width="877"
ActionPerformed="myReoGrid_ActionPerformed"
WorksheetInserted="myReoGrid_WorksheetInserted"
WorksheetCreated="myReoGrid_WorksheetCreated"
WorksheetNameChanged="myReoGrid_WorksheetNameChanged"
WorksheetScrolled="myReoGrid_WorksheetScrolled"
WorksheetRemoved="myReoGrid_WorksheetRemoved"
CurrentWorksheetChanged="myReoGrid_CurrentWorksheetChanged"
ScrollViewer.HorizontalScrollBarVisibility="Visible"
ScrollViewer.CanContentScroll="True"
RenderTransformOrigin="0.5,0.5">
<ReoGrid:ReoGridControl.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="0.5"
ScaleY="0.5" />
<SkewTransform />
<RotateTransform />
<TranslateTransform />
</TransformGroup>
</ReoGrid:ReoGridControl.RenderTransform>
</ReoGrid:ReoGridControl>
Offline
Hi drdbkarron,
You just need to set the property SheetTabWidth to a smaller number to shrink the sheet tab control, the sheet tab control is too large and it covered the scroll bar.
<ReoGrid:ReoGridControl ...
SheetTabWidth="200">
...
</ReoGrid:ReoGridControl>
Offline
I found the visibility property set to 'hidden' by default in the XML.
ScrollViewer.HorizontalScrollBarVisibility="Visible"
seems to work.
Offline
Pages: 1
Topic closed