Hi Everyone

I am new in C# and developing a desktop application using it. There I have developed a form. In that form a DataGridView control is used. In that control a lot number of column is added with header text manually. This result a Horizontal Scrollbar appeared when run the form. Now I would like to control that Horizontal Scrollbar bar by locking some column not to scroll from beginning to a certain index of column. After that index the rest of the columns will be scrolled horizontally. Please help me in this regard. Thanks to you all.

8 Years
Discussion Span
Last Post by neo.mn

Just to be clear on the question, you want to only show certain columns on your DataGridView?


I have found the solution. The way is to use the Frozen property by false value after each column.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.