Hi,
my problem is, i want a grid where one columne sometimes is a button (for add(something) or remove). Or empty if no interaction is posible.
I know how to change the column to Button
this.ultraGrid.DisplayLayout.Bands[0].Columns["ButtonText"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;What i get there is a button but it does not look like a normal IG Button.Is there a way except to underlay a Buttonimge to the cell that the button looks like a normal Button?Thanks a lot. Wolfgang
Hi Wolfgang,
Can you be more specific? What about the button does not look like a regular button? Can you post screen shots?
This might be related to Windows themes, or it could have something to do with the display style of the button. There are a number of factors are play here, so without more specifics, it's hard to answer your question.
What i get is somthing like this:
The last Column is a string (in my Data) that has
.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;On the first look you dont see it is a Button. I think there will be a posibility to make this button look like a button so the user will know that he can click there.But I dont know where to Change this Display Style.If the corners of the button where roundet I think this woud be helping Any Idea what I want and how to realise it?
I'm dam supid. We use a Styles and I think in this is the entry for ColumnButton missing or something like that.
I set the grid to
.UseAppStyling = false;
and it looks like expected.
I also need ButtonDisplayStyle so thanks for this.
Hello Wolfgang,
UltraGrid has a property on a column which determine how cell buttons are displayed for a column’s cells
This.ultraGrid.DisplayLayout.Bands[0].Bands[0].Columns["Drug"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;
Can you please test this and let me know for the result.