I'm new-ish to ultragrid so I don't know a whole lot. I have a defect where the scrollbar is not appearing when the ultragrid is not enabled so we have some records being cut off. ultragrid.Enabled = false but the scrollbar is not showing. I found somewhere that you can change the scrollbar to show if the column is in edit mode, but I don't want the column to be in edit mode. A 'hackish' way to get around it is to do ultraGrid.DisplayLayout.Override.AllowUpdate = false, but that doesn't seem right. It also makes the grid appear editable when it's not and it'll be confusing to the users. The only way I can think of is to put AllowUpdate to false and change the appearance of the grid, but there should be an easier way.
Which scroll bar are you talking about? The Enabled or AllowUpdate property of the grid should not have any effect on the visibility of the row or column scollbars. Are you talking about a scrollbar inside a cell?
The main vertical scrollbar, not a scrollbar inside of a cell. I see the scrollbar on the side, but I can't use it when enable is false. Here's what we're basically doing. The grid is un-enabled when we start the application. The user will click edit, then the grid is enabled. The user will edit the information and/or add a new row, click save and the grid is now un-enabled. The scroll bars don't show at all when the grid is un-enabled but do when it's enabled. The data in the grid exceed how far the grid can show vertically but I can't scroll. I have scrollbars set to both and it won't show.
Hi Brian,
I'm confused, then. Your original post says:
Brian Sain said: I have a defect where the scrollbar is not appearing when the ultragrid is not enabled
And now you are saying:
Brian Sain said: I see the scrollbar on the side, but I can't use it when enable is false.
Brian Sain said:The scroll bars don't show at all when the grid is un-enabled but do when it's enabled.
So... you are saying that if you enabled the grid and then disable the grid, the scrollbar is disappearing? I can't recall ever seeing that. I tried it out in a quick sample project just setting Enabled to false and back to true and it's working fine for me. The scrollbar is visible (although it is, of course, disabled).
You might want to try getting the latest service release if you don't already have it.
How to get the latest service release - Infragistics Community
If that doesn't help, can you post a small sample project demonstrating this behavior?
I guess I have a mix up in my words. The scroll bar is visible, but it's disabled when the grid is disabled. Is there a way to have the scroll bar enabled while the grid is disabled?
Hello!
But if we have parent control with enable/disable logic we can't make Ultragrid enabled separately. Thats why scrollbal disabling is wrong decision(
No, that is not possible. You would have to disable the individual features of the grid instead of disabling the grid itself. Things like AllowDelete, AllowUpdate, and AllowAddNew can be set on the grid.DisplayLayout.Override to affect the entire grid.