Hello all!
I'd like to know if it's possible to have a read-only column that has an EditButton inside it. Actually if the column is Read-only the button doesn't appear so the user cannot click it.
Our main purpose is to have a "controllable dropdownlist" that can be launched from every inserted button, without letting the user to manually edit data.
Is that possible?
Many thanks in advance,
Ignasi
Hi Ignasi,
Are you using an EditorButton in the cell with an Editor? Or are you using the EditButton Style for the column?
I was able to get this to work using an EditorButton by setting the following:
e.Layout.Bands[0].Columns["String 1"].CellActivation = Activation.ActivateOnly; e.Layout.Bands[0].Columns["String 1"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;
Interesting, only "Always" works, it looks very awkward all the buttons in the cells, I hate it.
for now I have no choice....
Hi Mike, thanks for your reply.
What worked for me was (using your sample) :
.Style = ColumnStyle.EditButton
.CellActivation = Activation.NoEdit
.ButtonDisplayStyle = ButtonDisplayStyle.OnMouseEnter (well that's your choice)
Many thanks