Datagrid horizontal scroll

G

Guest

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
 
G

Guest

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?
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top