We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hiding controls in the Grid until activated

Thread ID:





14457 May 27,2004 11:04 AM UTC May 27,2004 02:53 PM UTC WinForms 4
Tags: GridControl
Asked On May 27, 2004 11:04 AM UTC

Is there a way to make the controls in the cell not visible until the user activated the cell? Something like the Property Window in VS.NET.

Administrator [Syncfusion]
Replied On May 27, 2004 12:05 PM UTC

You can hide buttons by setting the style.ShowButtons property for the cells. Is this what you mean by hiding the control?

Administrator [Syncfusion]
Replied On May 27, 2004 01:10 PM UTC

Yes this is what I am looking for. Is this apply to all the build in controls? combo box, checkbox, etc... Or is this only apply to button?

Administrator [Syncfusion]
Replied On May 27, 2004 01:20 PM UTC

It applies to buttons only, but does include the ComboBox button, pushbutton and any other cell buttons you might be using. It will not hide a checkbox. If you want to hide checkboxes, then you could set all the celltypes to be "Static", and then handle PrepareViewStyleInfo. In your handler, if e.RowIndex and e.ColIndex point to grid.CurrentCell.RowIndex and grid.CurrentCell.ColIndex, you could then try setting e.Style.CellType to be whatever control you want in that row and column. (I mention PrepareViewStyleInfo here, but am not sure whther you would need to handle model.QueryCellInfo instead. But I think one or the other of these events should work to handle this.)

Administrator [Syncfusion]
Replied On May 27, 2004 02:53 PM UTC

Clay, thank you very much. You help me to solve many of my problems very quick. I enjoy posting my issues in this forum. The turnaround time is great. -patrick


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon