added columns for user controll
This commit is contained in:
46
Form1.Designer.cs
generated
46
Form1.Designer.cs
generated
@@ -37,6 +37,11 @@ namespace it_projekt
|
|||||||
this.passTxt = new System.Windows.Forms.TextBox();
|
this.passTxt = new System.Windows.Forms.TextBox();
|
||||||
this.sqlTxt = new System.Windows.Forms.TextBox();
|
this.sqlTxt = new System.Windows.Forms.TextBox();
|
||||||
this.dataGrid = new System.Windows.Forms.DataGridView();
|
this.dataGrid = new System.Windows.Forms.DataGridView();
|
||||||
|
this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
|
this.firstname = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
|
this.lastname = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
|
this.creationDate = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
|
this.markItem = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.dataGrid)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.dataGrid)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
@@ -104,11 +109,47 @@ namespace it_projekt
|
|||||||
//
|
//
|
||||||
this.dataGrid.AllowUserToOrderColumns = true;
|
this.dataGrid.AllowUserToOrderColumns = true;
|
||||||
this.dataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
this.dataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
|
this.dataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||||
|
this.Id,
|
||||||
|
this.firstname,
|
||||||
|
this.lastname,
|
||||||
|
this.creationDate,
|
||||||
|
this.markItem});
|
||||||
this.dataGrid.Location = new System.Drawing.Point(12, 213);
|
this.dataGrid.Location = new System.Drawing.Point(12, 213);
|
||||||
this.dataGrid.Name = "dataGrid";
|
this.dataGrid.Name = "dataGrid";
|
||||||
this.dataGrid.RowTemplate.Height = 25;
|
this.dataGrid.RowTemplate.Height = 25;
|
||||||
this.dataGrid.Size = new System.Drawing.Size(771, 225);
|
this.dataGrid.Size = new System.Drawing.Size(771, 225);
|
||||||
this.dataGrid.TabIndex = 7;
|
this.dataGrid.TabIndex = 7;
|
||||||
|
this.dataGrid.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGrid_CellContentClick);
|
||||||
|
//
|
||||||
|
// Id
|
||||||
|
//
|
||||||
|
this.Id.HeaderText = "NutzerId";
|
||||||
|
this.Id.Name = "Id";
|
||||||
|
this.Id.ReadOnly = true;
|
||||||
|
//
|
||||||
|
// firstname
|
||||||
|
//
|
||||||
|
this.firstname.HeaderText = "Vorname";
|
||||||
|
this.firstname.Name = "firstname";
|
||||||
|
this.firstname.ReadOnly = true;
|
||||||
|
//
|
||||||
|
// lastname
|
||||||
|
//
|
||||||
|
this.lastname.HeaderText = "Nachname";
|
||||||
|
this.lastname.Name = "lastname";
|
||||||
|
this.lastname.ReadOnly = true;
|
||||||
|
//
|
||||||
|
// creationDate
|
||||||
|
//
|
||||||
|
this.creationDate.HeaderText = "Erstellungssdatum";
|
||||||
|
this.creationDate.Name = "creationDate";
|
||||||
|
this.creationDate.ReadOnly = true;
|
||||||
|
//
|
||||||
|
// markItem
|
||||||
|
//
|
||||||
|
this.markItem.HeaderText = "User Auswählen";
|
||||||
|
this.markItem.Name = "markItem";
|
||||||
//
|
//
|
||||||
// Form1
|
// Form1
|
||||||
//
|
//
|
||||||
@@ -141,6 +182,11 @@ namespace it_projekt
|
|||||||
private System.Windows.Forms.TextBox passTxt;
|
private System.Windows.Forms.TextBox passTxt;
|
||||||
private System.Windows.Forms.TextBox sqlTxt;
|
private System.Windows.Forms.TextBox sqlTxt;
|
||||||
private System.Windows.Forms.DataGridView dataGrid;
|
private System.Windows.Forms.DataGridView dataGrid;
|
||||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn Id;
|
||||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn firstname;
|
||||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn lastname;
|
||||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn creationDate;
|
||||||
|
private System.Windows.Forms.DataGridViewCheckBoxColumn markItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
5
Form1.cs
5
Form1.cs
@@ -39,6 +39,9 @@ namespace it_projekt
|
|||||||
MessageBox.Show(test.persons.Find(1).Firstname);
|
MessageBox.Show(test.persons.Find(1).Firstname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void dataGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
15
Form1.resx
15
Form1.resx
@@ -57,4 +57,19 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
|
<metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="firstname.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="lastname.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="creationDate.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="markItem.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
</root>
|
</root>
|
||||||
Reference in New Issue
Block a user