Too many columns displayed in radGridView

1 Answer 58 Views
GridView
Jana
Top achievements
Rank 2
Iron
Iron
Iron
Jana asked on 17 Sep 2024, 02:28 PM

Hello,

We are using radGridView in a winforms application. The last 4 columns visible in the screen shot have the property "IsVisible" set to false. When opening the window for the first time ,the list is empty and we are launching some synchronisation processes in the background to charge the information to display. However, the 4 last columns show up in the list and are filled with information as soon as the synchronization has finished. When closing and reopening the window, the columns disappear and everything is correct. What could be the reason for them to show up even though their visibility is set to false?

.NET version: 6
Telerik version: 2024.3.806

Thank you in advance!

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 19 Sep 2024, 10:10 AM

Hello, Jana,

Setting the IsVisible property to false is the correct approach when you need to hide specific columns in RadGridView. It is good to set this property after all synchronizations in the grid has finished and the whole data is loaded. For example, you can use the form's Shown or Load event to ensure that the IsVisible property will be applied to the grid and the specified column will not be visible. I am not sure what is the exact setup on your side but if you set the property after the grid is fully initialized it is supposed to hide the marked columns. 

In case you still have difficulties hiding columns, it would be of great help if you can replicate this problem in a sample runnable project and provide it to me, so that I can investigate the specific case further.

I hope this information helps. If you have any further questions, please let me know.

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
GridView
Asked by
Jana
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or