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.
Unfortunately, activation email could not send to your email. Please try again.

Hiding controls in the Grid until activated

Thread ID:

Created:

Updated:

Platform:

Replies:

14457 May 27,2004 07:04 AM May 27,2004 10:53 AM Windows Forms 4
loading
Tags: GridControl
Patrick
Asked On May 27, 2004 07:04 AM

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 08:05 AM

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 09:10 AM

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 09:20 AM

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 10:53 AM

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

CONFIRMATION

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.

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.

;