Skip to content

Commit 8715c76

Browse files
SindhuTNSindhuTN
authored andcommitted
Changes made in the sample.
1 parent c3075a5 commit 8715c76

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Form2.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ public partial class Form2 : Form
1717
public Form2()
1818
{
1919
InitializeComponent();
20+
this.gridControl1.GridVisualStyles = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
21+
gridControl1.ThemesEnabled = true;
22+
GridTextBoxCellRenderer ren = gridControl1.CellRenderers["TextBox"] as GridTextBoxCellRenderer;
23+
gridControl1.TableStyle.VerticalAlignment = GridVerticalAlignment.Middle;
2024
gridControl1.RowCount = 10;
2125
gridControl1.ColCount = 9;
2226
this.gridControl1.DefaultRowHeight = 150;
@@ -32,6 +36,13 @@ public Form2()
3236
}
3337
}
3438
}
39+
[STAThread]
40+
static void Main()
41+
{
42+
Application.EnableVisualStyles();
43+
Application.SetCompatibleTextRenderingDefault(false);
44+
Application.Run(new Form2());
45+
}
3546

3647
#region "Create DataTable"
3748
string[] name1 = new string[] { "John", "Peter", "Smith", "Jay", "Krish", "Mike" };

0 commit comments

Comments
 (0)