using System; using System.Drawing; using System.Data; using System.Windows.Forms; class HostScanner { public static void Main() { Application.Run( new MainApps()); } } class MainApps : Form { DataGridView appgrd; DataTable apptbl; DataColumn appclm, appcln; //Button appbtn; public MainApps() { appgrd = new DataGridView(); apptbl = new DataTable( "Testing Table" ); appclm = new DataColumn( "CustomerID" ); appcln = new DataColumn( "Customer Age" ); //appgrd.Name = "DataGrids"; //appgrd.Size = new Size( this.Size.Width, this.Size.Height ); //appgrd.HeaderForeColor = SystemColors.ControlText; //appgrd.TabIndex = 0; apptbl.Columns.Add( appclm ); apptbl.Columns.Add( appcln ); appgrd.DataSource = apptbl; this.Controls.Add( appgrd ); } }