added columns

This commit is contained in:
EggMan20339 2024-02-12 10:27:33 -05:00
parent 0df4f9b1bd
commit dc1856d078
5 changed files with 65 additions and 13 deletions

View File

@ -46,16 +46,16 @@
<Reference Include="System.Xml"/>
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<Compile Include="frmTest.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
<Compile Include="frmTest.Designer.cs">
<DependentUpon>frmTest.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs"/>
<Compile Include="Properties\AssemblyInfo.cs"/>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
<EmbeddedResource Include="frmTest.resx">
<DependentUpon>frmTest.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>

View File

@ -16,7 +16,7 @@ namespace Database2
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
Application.Run(new frmTest());
}
}
}

View File

@ -1,6 +1,6 @@
namespace Database2
{
partial class Form1
partial class frmTest
{
/// <summary>
/// Required designer variable.
@ -31,6 +31,11 @@
{
this.cboTest = new System.Windows.Forms.ComboBox();
this.dgvStudents = new System.Windows.Forms.DataGridView();
this.STUDENT_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.LNAME = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.FNAME = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ACCT_BAL = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DOB = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dgvStudents)).BeginInit();
this.SuspendLayout();
//
@ -45,24 +50,56 @@
// dgvStudents
//
this.dgvStudents.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvStudents.Location = new System.Drawing.Point(306, 287);
this.dgvStudents.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.STUDENT_ID, this.LNAME, this.FNAME, this.ACCT_BAL, this.DOB });
this.dgvStudents.Location = new System.Drawing.Point(51, 269);
this.dgvStudents.Name = "dgvStudents";
this.dgvStudents.Size = new System.Drawing.Size(240, 150);
this.dgvStudents.Size = new System.Drawing.Size(682, 150);
this.dgvStudents.TabIndex = 1;
//
// Form1
// STUDENT_ID
//
this.STUDENT_ID.HeaderText = "Student_ID";
this.STUDENT_ID.Name = "STUDENT_ID";
//
// LNAME
//
this.LNAME.HeaderText = "Last Name";
this.LNAME.Name = "LNAME";
//
// FNAME
//
this.FNAME.HeaderText = "First Name";
this.FNAME.Name = "FNAME";
//
// ACCT_BAL
//
this.ACCT_BAL.HeaderText = "Account Balance";
this.ACCT_BAL.Name = "ACCT_BAL";
//
// DOB
//
this.DOB.HeaderText = "Date of Birth";
this.DOB.Name = "DOB";
//
// frmTest
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.dgvStudents);
this.Controls.Add(this.cboTest);
this.Name = "Form1";
this.Name = "frmTest";
this.Text = "Form1";
((System.ComponentModel.ISupportInitialize)(this.dgvStudents)).EndInit();
this.ResumeLayout(false);
}
private System.Windows.Forms.DataGridViewTextBoxColumn STUDENT_ID;
private System.Windows.Forms.DataGridViewTextBoxColumn FNAME;
private System.Windows.Forms.DataGridViewTextBoxColumn LNAME;
private System.Windows.Forms.DataGridViewTextBoxColumn ACCT_BAL;
private System.Windows.Forms.DataGridViewTextBoxColumn DOB;
private System.Windows.Forms.ComboBox cboTest;
private System.Windows.Forms.DataGridView dgvStudents;

View File

@ -10,9 +10,9 @@ using System.Windows.Forms;
namespace Database2
{
public partial class Form1 : Form
public partial class frmTest : Form
{
public Form1()
public frmTest()
{
InitializeComponent();
}

View File

@ -117,4 +117,19 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="STUDENT_ID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="LNAME.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="FNAME.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ACCT_BAL.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="DOB.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>