Jump to content
Software FX Community

Grid Scrolling


Taff
 Share

Recommended Posts

 

Horizontal/Vertical scrolling depends on the grid contents (including visual elements like Borders and SideBars). If the grid contents are wider/taller than the available space, the grid will show scroll bars automatically.

These are simple rules used to decide when to scroll horizontally in the grid:

1. If the grid.Width property is not set, it will expand to its contents and will never need to scroll.

2. If the width of the data is smaller than the available area, it will expand to meet it.

3. If the width of the data is larger than the available area, a scrollbar will be added

The same rules apply to vertical scrolling.

Concerning the width of the data, is the total of each column, so if column.Width is set, it takes that, otherwise, it shrinks to the width of the data.

 

To turn off paging on the grid, programmatically: Grid1.Paging.Enabled = false;

Let us know if this is what you need.

Link to comment
Share on other sites

Thanks mate, that helps.

How about the following can you:

Enable Only single row selection

Enable Multi row selection (this one is really important to us)

If you can multi row select can you extend this to select multi rows between two rows ie select one row, then go 3 rows down and select a new row with the shift key pressed and the grid selects all rows inbetween, bit like outlook

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...