| MultiRow Windows Forms > Developer's Guide > Using MultiRow > Cell Types > TextBoxCell > Display Vertical Scroll Bar (TextBoxCell) |
You can create a text box cell that allows the input of multiline text and has a vertical scroll bar. The text box cell scroll bar is displayed only when the cell is in an editable state.

Use the following steps to create a text box cell that allows the input of multiline text and has a vertical scroll bar
The following code creates a text box cell that allows the input of multiline text and has a vertical scroll bar.
Imports GrapeCity.Win.MultiRow
Dim template As New Template()
Dim textBoxCell1 As New TextBoxCell()
textBoxCell1.Name = "textBoxCell1"
textBoxCell1.ScrollBars = ScrollBars.Vertical
textBoxCell1.Size = New Size(80, 60)
textBoxCell1.Style.Multiline = MultiRowTriState.True
textBoxCell1.Style.TextAlign = MultiRowContentAlignment.TopLeft
GcMultiRow1.Template = Template.CreateGridTemplate(New Cell() { textBoxCell1 })
GcMultiRow1.RowCount = 10
|
using GrapeCity.Win.MultiRow;
Template template = new Template();
TextBoxCell textBoxCell1 = new TextBoxCell();
textBoxCell1.Name = "textBoxCell1";
textBoxCell1.ScrollBars = ScrollBars.Vertical;
textBoxCell1.Size = new Size(80, 60);
textBoxCell1.Style.Multiline = MultiRowTriState.True;
textBoxCell1.Style.TextAlign = MultiRowContentAlignment.TopLeft;
gcMultiRow1.Template = Template.CreateGridTemplate(new Cell[] { textBoxCell1 });
gcMultiRow1.RowCount = 10;
|