There are four columns in the ultragrid,the third column is button Column and the column key is Button,all the columns key is UnitCode,UnitName,Button,Remark,I have below two questions,1.How to set the button column's appearance of the ultragrid2.when clicking the button column I want to show a message, in which event to write the code?
Many thanks
1-ultraGrid1.DisplayLayout.Bands[0].Columns[0].CellButtonAppearance
u can use :
ultraGrid1.DisplayLayout.Bands[0].Columns[0].Style = Infragistics.Win.UltraWinGrid.
ColumnStyle.Button;
ultraGrid1.DisplayLayout.Bands[0].Columns[0].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.
ButtonDisplayStyle.Always;
2- use the event :
ClickCellButton
Thank hady for your help!
How to set the button column's appearance? For example,the button appearance is 3D or Flat
tramp168 said:How to set the button column's appearance? For example,the button appearance is 3D or Flat
You can't control this for each column, but you can set it on the Override, so it can be set on the Band or the DisplayLayout. The property you are looking for is:
grid.DisplayLayout.Override.ButtonStyle
or
grid.DisplayLayout.Bands[0].Override.ButtonStyle
Mike Saltzman ,thank you! it's OK now.