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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.