public form1()
{
InitializeComponent();
this.dataGridView.AllowUserToAddRows = false;
this.dataGridView.AutoGenerateColumns = false;
this.dataGridView.DataSource = GetDataTable();
}
private DataTable GetDataTable()
{
DataTable dt = new DataTable();
dt.Columns.AddRange(new DataColumn[] {
new DataColumn("clmTypeID", typeof(int)),
new DataColumn("clmOnlineOffline", typeof(string)),
new DataColumn("clmWithHostSimulator", typeof(string)),
new DataColumn("clmTerminalFloorLimit", typeof(string)),