このプロパティは、一度に表示されるテキストがセルに多く含まれている列をユーザーがスクロールできるようにするために使用できます。
セルのテキストが複数行に表示されるかどうかを示すための CellMultiLine プロパティが列に対して False に設定されると、このプロパティは無視されます。
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button24_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button24.Click ' When CellMultiline is set to true on a column, the UltraGrid will display ' multiline text and also allow the user to enter multiline text. If ' CellMultiline is set to false, any multiline text in cells will only display ' the first line. Dim column As UltraGridColumn = Me.UltraGrid1.DisplayLayout.Bands(0).Columns(0) ' Set the CellMultiline to true so the UltraGrid allows for multiline text ' in the column. column.CellMultiLine = DefaultableBoolean.True ' You can also set the VertScrollBar to true to show vertical scrollbar when ' a cell in the column is in edit mode. column.VertScrollBar = True End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button24_Click(object sender, System.EventArgs e) { // When CellMultiline is set to true on a column, the UltraGrid will display // multiline text and also allow the user to enter multiline text. If // CellMultiline is set to false, any multiline text in cells will only display // the first line. UltraGridColumn column = this.ultraGrid1.DisplayLayout.Bands[0].Columns[0]; // Set the CellMultiline to true so the UltraGrid allows for multiline text // in the column. column.CellMultiLine = DefaultableBoolean.True; // You can also set the VertScrollBar to true to show vertical scrollbar when // a cell in the column is in edit mode. column.VertScrollBar = true; }