In datagrid I have a invisible column(width=0) in column styles at the first
position, the horizantal scroll bar doesn't respond when you click the arrow
it sends a small increment with the value of 1. Anybody faced this before?

Dincer

Datagrid horizontal scroll by DincerUyav

DincerUyav
Thu Oct 21 02:13:03 CDT 2004

And when you change the column width from 0 to 1,it works properly

RE: Datagrid horizontal scroll by ChrisSano

ChrisSano
Thu Oct 21 19:21:01 CDT 2004


When you click on the right arrow button on the horizontal scroll bar, the
DataGrid will scroll to the right by one column. Since the column still
exists in the GridColumnStylesCollection, even though the width is set to
zero, the DataGrid thinks it's still there. If you're hiding the column
because you don't need it, why not just remove it from the collection?

"Dincer Uyav" wrote:

> In datagrid I have a invisible column(width=0) in column styles at the first
> position, the horizantal scroll bar doesn't respond when you click the arrow
> it sends a small increment with the value of 1. Anybody faced this before?
>
> Dincer

RE: Datagrid horizontal scroll by DincerUyav

DincerUyav
Fri Oct 22 01:39:02 CDT 2004

Ok if it is as you say then when i click 10 times it should be on the ninth
column;
but it doesn't move even when you click 10 times,We have some generic
behaviour on the first hidden columns of the grid if we remove it ,it will be
a big change for us.

Regards,
Dincer Uyav

"Chris Sano" wrote:

>
> When you click on the right arrow button on the horizontal scroll bar, the
> DataGrid will scroll to the right by one column. Since the column still
> exists in the GridColumnStylesCollection, even though the width is set to
> zero, the DataGrid thinks it's still there. If you're hiding the column
> because you don't need it, why not just remove it from the collection?
>
> "Dincer Uyav" wrote:
>
> > In datagrid I have a invisible column(width=0) in column styles at the first
> > position, the horizantal scroll bar doesn't respond when you click the arrow
> > it sends a small increment with the value of 1. Anybody faced this before?
> >
> > Dincer