'宣言 Public Property ButtonDisplayStyle As ButtonDisplayStyle
public ButtonDisplayStyle ButtonDisplayStyle {get; set;}
このプロパティは、セル ボタンが列のセルにどのように表示されるかを示すために使用されます。設定 1 (ButtonDisplayStyleAlways) は常にボタンを表示し、他の設定はコントロールとのユーザー応答の結果に限ってボタンが表示されます。
このプロパティは列の Style プロパティが 2 (StyleEditButton)、4 (StyleDropDown)、5 (StyleDropDownList)、6 (StyleDropDownValidate)、7 (StyleDropDownButton)、または 8 (StyleDropDownCalendar) に設定されている場合に限って効果があります。
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button6_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button6.Click ' ButtonDisplayStyle property off the column dictates when the buttons in cells of ' that column are displayed. By default buttons are displayed whenever the user ' moves mouse over the cell. You can set this property to Always to make the ' UltraGrid always display the buttons. Buttons inlcude drop down arrow buttons ' as well as edit buttons and regular buttons. Dim column As UltraGridColumn = Me.UltraGrid1.DisplayLayout.Bands(1).Columns("OrderDate") column.ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button6_Click(object sender, System.EventArgs e) { // ButtonDisplayStyle property off the column dictates when the buttons in cells of // that column are displayed. By default buttons are displayed whenever the user // moves mouse over the cell. You can set this property to Always to make the // UltraGrid always display the buttons. Buttons inlcude drop down arrow buttons // as well as edit buttons and regular buttons. UltraGridColumn column = this.ultraGrid1.DisplayLayout.Bands[1].Columns["OrderDate"]; column.ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always; }