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.
You can try:
int width = 20;(whatever you like)
MaxWidth = width
MinWidth = width
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.
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