finished designing

This commit is contained in:
EggMan20339 2024-02-12 10:37:14 -05:00
parent dc1856d078
commit af45c6ed14
2 changed files with 32 additions and 3 deletions

View File

@ -29,6 +29,8 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.cboTest = new System.Windows.Forms.ComboBox(); this.cboTest = new System.Windows.Forms.ComboBox();
this.dgvStudents = new System.Windows.Forms.DataGridView(); this.dgvStudents = new System.Windows.Forms.DataGridView();
this.STUDENT_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.STUDENT_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
@ -46,38 +48,51 @@
this.cboTest.Name = "cboTest"; this.cboTest.Name = "cboTest";
this.cboTest.Size = new System.Drawing.Size(121, 21); this.cboTest.Size = new System.Drawing.Size(121, 21);
this.cboTest.TabIndex = 0; this.cboTest.TabIndex = 0;
this.cboTest.SelectedIndexChanged += new System.EventHandler(this.cboTest_SelectedIndexChanged);
// //
// dgvStudents // dgvStudents
// //
this.dgvStudents.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvStudents.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvStudents.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.STUDENT_ID, this.LNAME, this.FNAME, this.ACCT_BAL, this.DOB }); 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.Location = new System.Drawing.Point(128, 180);
this.dgvStudents.Name = "dgvStudents"; this.dgvStudents.Name = "dgvStudents";
this.dgvStudents.Size = new System.Drawing.Size(682, 150); this.dgvStudents.Size = new System.Drawing.Size(545, 242);
this.dgvStudents.TabIndex = 1; this.dgvStudents.TabIndex = 1;
this.dgvStudents.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvStudents_CellContentClick);
// //
// STUDENT_ID // STUDENT_ID
// //
this.STUDENT_ID.HeaderText = "Student_ID"; this.STUDENT_ID.DataPropertyName = "STUDENT_ID";
this.STUDENT_ID.HeaderText = "Student ID";
this.STUDENT_ID.Name = "STUDENT_ID"; this.STUDENT_ID.Name = "STUDENT_ID";
// //
// LNAME // LNAME
// //
this.LNAME.DataPropertyName = "LNAME";
this.LNAME.HeaderText = "Last Name"; this.LNAME.HeaderText = "Last Name";
this.LNAME.Name = "LNAME"; this.LNAME.Name = "LNAME";
// //
// FNAME // FNAME
// //
this.FNAME.DataPropertyName = "FNAME";
this.FNAME.HeaderText = "First Name"; this.FNAME.HeaderText = "First Name";
this.FNAME.Name = "FNAME"; this.FNAME.Name = "FNAME";
// //
// ACCT_BAL // ACCT_BAL
// //
this.ACCT_BAL.DataPropertyName = "ACCT_BAL";
dataGridViewCellStyle1.Format = "C2";
dataGridViewCellStyle1.NullValue = null;
this.ACCT_BAL.DefaultCellStyle = dataGridViewCellStyle1;
this.ACCT_BAL.HeaderText = "Account Balance"; this.ACCT_BAL.HeaderText = "Account Balance";
this.ACCT_BAL.Name = "ACCT_BAL"; this.ACCT_BAL.Name = "ACCT_BAL";
// //
// DOB // DOB
// //
this.DOB.DataPropertyName = "DOB";
dataGridViewCellStyle2.Format = "d";
dataGridViewCellStyle2.NullValue = null;
this.DOB.DefaultCellStyle = dataGridViewCellStyle2;
this.DOB.HeaderText = "Date of Birth"; this.DOB.HeaderText = "Date of Birth";
this.DOB.Name = "DOB"; this.DOB.Name = "DOB";
// //

View File

@ -8,6 +8,10 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using System.Configuration;
using System.Collections;
using System.Data.SqlClient;
namespace Database2 namespace Database2
{ {
public partial class frmTest : Form public partial class frmTest : Form
@ -16,5 +20,15 @@ namespace Database2
{ {
InitializeComponent(); InitializeComponent();
} }
private void cboTest_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void dgvStudents_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
} }
} }