How can I make my grid or band width fixed? I want to fit all my columns in my displayed grid width with the Horizontal scroll disabled?
And also, I don't want to set the ResizeAllColumns to true.
This works with my icon columns. Not for the rest of the columns though since users should be able to change this width of the other columns.
Is there a way to know the width of the displayed grid? I thought its ActiveColScrollRgn but it gives me 0 at times.
Columns[i].MinWidth
Columns[i].MaxWidth
Which property is this? The control's width won't do the trick. Columns can still go over the grid and have the user use the horizontal scroll bar.
You can try:
int width = 20;(whatever you like)
MaxWidth = width
MinWidth = width
OK, I can make my form fixed.
But if I put the ResizeAllColumns to true, the columns will resize out of my control when I add new rows or update the datasource. I dont want this.
If I set it to NONE, the columns will go over my grid and need to scroll it horizontally.
I just want to fit all the columns in my grid and be able to control each width of the columns.