private void Form1_Load(object sender, EventArgs e)
{
TextBoxCell textBoxCell1 = new TextBoxCell();
//If the text cannot display completely, one '......' string will be shown at the text's end, hover the cell, the whole text will be shown in tool tip.
textBoxCell1.Ellipsis = MultiRowEllipsisMode.EllipsisEnd;
textBoxCell1.EllipsisString = "......";
//Enter the edit mode, the text will be highlight selected.
textBoxCell1.HighlightText = true;
textBoxCell1.Value = "DELETE THIS STRING TO INPUT BY YOURSELF, ONLY 10 CHARACTERS CAN BE INPUT";
textBoxCell1.MaxLength = 10;
//The value will be casted to lower case.
textBoxCell1.CharacterCasing = CharacterCasing.Lower;
TextBoxCell textBoxCell2 = new TextBoxCell();
//Input text in textBoxCell2, it will be treated as password, always display '#'.
textBoxCell2.PasswordChar = '#';
textBoxCell2.UseSystemPasswordChar = false;
textBoxCell2.Value = "12345";
Template template1 = Template.CreateGridTemplate(new Cell[] { textBoxCell1, textBoxCell2 }, 160,
AutoGenerateGridTemplateStyles.ColumnHeader | AutoGenerateGridTemplateStyles.RowHeaderAutoNumber);
gcMultiRow1.Template = template1;
gcMultiRow1.RowCount = 3;
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim textBoxCell1 As New TextBoxCell()
'If the text cannot display completely, one '......' string will be shown at the text's end, hover the cell, the whole text will be shown in tool tip.
textBoxCell1.Ellipsis = MultiRowEllipsisMode.EllipsisEnd
textBoxCell1.EllipsisString = "......"
'Enter the edit mode, the text will be highlight selected.
textBoxCell1.HighlightText = True
textBoxCell1.Value = "DELETE THIS STRING TO INPUT BY YOURSELF, ONLY 10 CHARACTERS CAN BE INPUT"
textBoxCell1.MaxLength = 10
'The value will be casted to lower case.
textBoxCell1.CharacterCasing = CharacterCasing.Lower
Dim textBoxCell2 As New TextBoxCell()
'Input text in textBoxCell2, it will be treated as password, always display '#'.
textBoxCell2.PasswordChar = "#"c
textBoxCell2.UseSystemPasswordChar = False
textBoxCell2.Value = "12345"
Dim template1 As Template = Template.CreateGridTemplate(New Cell() {textBoxCell1, textBoxCell2})
gcMultiRow1.Template = template1
gcMultiRow1.RowCount = 3
End Sub