Setting the WrapMode of the DefaultCellStyle of your DataGridViewTextBoxColumn to true.
This commit is contained in:
parent
e903cc6273
commit
5da70f0461
2 changed files with 258 additions and 252 deletions
|
@ -29,15 +29,13 @@ namespace WebsitePanel.LocalizationToolkit
|
|||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ApplicationForm));
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.statusBar = new System.Windows.Forms.StatusStrip();
|
||||
this.statusBarLabel = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.backgroundWorker = new System.ComponentModel.BackgroundWorker();
|
||||
this.pnlMain = new System.Windows.Forms.Panel();
|
||||
this.grdResources = new System.Windows.Forms.DataGridView();
|
||||
this.FileColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.KeyColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.DefaultValueColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ValueColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.pnlTop = new System.Windows.Forms.Panel();
|
||||
this.btnFind = new System.Windows.Forms.Button();
|
||||
this.btnImport = new System.Windows.Forms.Button();
|
||||
|
@ -48,6 +46,10 @@ namespace WebsitePanel.LocalizationToolkit
|
|||
this.btnDelete = new System.Windows.Forms.Button();
|
||||
this.cbSupportedLocales = new System.Windows.Forms.ComboBox();
|
||||
this.topLogoControl = new WebsitePanel.LocalizationToolkit.TopLogoControl();
|
||||
this.FileColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.KeyColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.DefaultValueColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ValueColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.statusBar.SuspendLayout();
|
||||
this.pnlMain.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.grdResources)).BeginInit();
|
||||
|
@ -59,16 +61,16 @@ namespace WebsitePanel.LocalizationToolkit
|
|||
this.statusBar.GripStyle = System.Windows.Forms.ToolStripGripStyle.Visible;
|
||||
this.statusBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.statusBarLabel});
|
||||
this.statusBar.Location = new System.Drawing.Point(0, 432);
|
||||
this.statusBar.Location = new System.Drawing.Point(0, 441);
|
||||
this.statusBar.Name = "statusBar";
|
||||
this.statusBar.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
|
||||
this.statusBar.Size = new System.Drawing.Size(737, 22);
|
||||
this.statusBar.Size = new System.Drawing.Size(742, 22);
|
||||
this.statusBar.TabIndex = 1;
|
||||
//
|
||||
// statusBarLabel
|
||||
//
|
||||
this.statusBarLabel.Name = "statusBarLabel";
|
||||
this.statusBarLabel.Size = new System.Drawing.Size(39, 17);
|
||||
this.statusBarLabel.Size = new System.Drawing.Size(38, 17);
|
||||
this.statusBarLabel.Text = "Ready";
|
||||
//
|
||||
// pnlMain
|
||||
|
@ -78,7 +80,7 @@ namespace WebsitePanel.LocalizationToolkit
|
|||
this.pnlMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pnlMain.Location = new System.Drawing.Point(0, 63);
|
||||
this.pnlMain.Name = "pnlMain";
|
||||
this.pnlMain.Size = new System.Drawing.Size(737, 369);
|
||||
this.pnlMain.Size = new System.Drawing.Size(742, 378);
|
||||
this.pnlMain.TabIndex = 4;
|
||||
//
|
||||
// grdResources
|
||||
|
@ -96,40 +98,10 @@ namespace WebsitePanel.LocalizationToolkit
|
|||
this.grdResources.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.grdResources.Location = new System.Drawing.Point(0, 79);
|
||||
this.grdResources.Name = "grdResources";
|
||||
this.grdResources.Size = new System.Drawing.Size(737, 290);
|
||||
this.grdResources.Size = new System.Drawing.Size(742, 299);
|
||||
this.grdResources.TabIndex = 1;
|
||||
this.grdResources.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.grdResources_CellFormatting);
|
||||
//
|
||||
// FileColumn
|
||||
//
|
||||
this.FileColumn.DataPropertyName = "File";
|
||||
this.FileColumn.HeaderText = "File";
|
||||
this.FileColumn.Name = "FileColumn";
|
||||
this.FileColumn.ReadOnly = true;
|
||||
//
|
||||
// KeyColumn
|
||||
//
|
||||
this.KeyColumn.DataPropertyName = "Key";
|
||||
this.KeyColumn.HeaderText = "Key";
|
||||
this.KeyColumn.Name = "KeyColumn";
|
||||
this.KeyColumn.ReadOnly = true;
|
||||
this.KeyColumn.Width = 180;
|
||||
//
|
||||
// DefaultValueColumn
|
||||
//
|
||||
this.DefaultValueColumn.DataPropertyName = "DefaultValue";
|
||||
this.DefaultValueColumn.HeaderText = "Default Value";
|
||||
this.DefaultValueColumn.Name = "DefaultValueColumn";
|
||||
this.DefaultValueColumn.ReadOnly = true;
|
||||
this.DefaultValueColumn.Width = 180;
|
||||
//
|
||||
// ValueColumn
|
||||
//
|
||||
this.ValueColumn.DataPropertyName = "Value";
|
||||
this.ValueColumn.HeaderText = "Value";
|
||||
this.ValueColumn.Name = "ValueColumn";
|
||||
this.ValueColumn.Width = 180;
|
||||
//
|
||||
// pnlTop
|
||||
//
|
||||
this.pnlTop.Controls.Add(this.btnFind);
|
||||
|
@ -143,7 +115,7 @@ namespace WebsitePanel.LocalizationToolkit
|
|||
this.pnlTop.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.pnlTop.Location = new System.Drawing.Point(0, 0);
|
||||
this.pnlTop.Name = "pnlTop";
|
||||
this.pnlTop.Size = new System.Drawing.Size(737, 79);
|
||||
this.pnlTop.Size = new System.Drawing.Size(742, 79);
|
||||
this.pnlTop.TabIndex = 0;
|
||||
//
|
||||
// btnFind
|
||||
|
@ -243,14 +215,48 @@ namespace WebsitePanel.LocalizationToolkit
|
|||
this.topLogoControl.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.topLogoControl.Location = new System.Drawing.Point(0, 0);
|
||||
this.topLogoControl.Name = "topLogoControl";
|
||||
this.topLogoControl.Size = new System.Drawing.Size(737, 63);
|
||||
this.topLogoControl.Size = new System.Drawing.Size(742, 63);
|
||||
this.topLogoControl.TabIndex = 0;
|
||||
//
|
||||
// FileColumn
|
||||
//
|
||||
this.FileColumn.DataPropertyName = "File";
|
||||
this.FileColumn.HeaderText = "File";
|
||||
this.FileColumn.Name = "FileColumn";
|
||||
this.FileColumn.ReadOnly = true;
|
||||
//
|
||||
// KeyColumn
|
||||
//
|
||||
this.KeyColumn.DataPropertyName = "Key";
|
||||
this.KeyColumn.HeaderText = "Key";
|
||||
this.KeyColumn.Name = "KeyColumn";
|
||||
this.KeyColumn.ReadOnly = true;
|
||||
this.KeyColumn.Width = 180;
|
||||
//
|
||||
// DefaultValueColumn
|
||||
//
|
||||
this.DefaultValueColumn.DataPropertyName = "DefaultValue";
|
||||
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.DefaultValueColumn.DefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.DefaultValueColumn.HeaderText = "Default Value";
|
||||
this.DefaultValueColumn.Name = "DefaultValueColumn";
|
||||
this.DefaultValueColumn.ReadOnly = true;
|
||||
this.DefaultValueColumn.Width = 180;
|
||||
//
|
||||
// ValueColumn
|
||||
//
|
||||
this.ValueColumn.DataPropertyName = "Value";
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.ValueColumn.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.ValueColumn.HeaderText = "Value";
|
||||
this.ValueColumn.Name = "ValueColumn";
|
||||
this.ValueColumn.Width = 180;
|
||||
//
|
||||
// ApplicationForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(737, 454);
|
||||
this.ClientSize = new System.Drawing.Size(742, 463);
|
||||
this.Controls.Add(this.pnlMain);
|
||||
this.Controls.Add(this.statusBar);
|
||||
this.Controls.Add(this.topLogoControl);
|
||||
|
@ -288,11 +294,11 @@ namespace WebsitePanel.LocalizationToolkit
|
|||
private System.Windows.Forms.Button btnSave;
|
||||
private System.Windows.Forms.Button btnDelete;
|
||||
private System.Windows.Forms.ComboBox cbSupportedLocales;
|
||||
private System.Windows.Forms.Button btnImport;
|
||||
private System.Windows.Forms.Button btnFind;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn FileColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn KeyColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn DefaultValueColumn;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn ValueColumn;
|
||||
private System.Windows.Forms.Button btnImport;
|
||||
private System.Windows.Forms.Button btnFind;
|
||||
}
|
||||
}
|
|
@ -167,8 +167,8 @@
|
|||
<data name="btnImport.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK7gAA
|
||||
Cu4BrzForAAABlRJREFUSEuFk39M02cexz+kwCkeajdMlIwRkCEG5DhyToOSZcsN45kwzdRsLqgBGbah
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK7QAA
|
||||
Cu0BAohJwQAABlRJREFUSEuFk39M02cexz+kwCkeajdMlIwRkCEG5DhyToOSZcsN45kwzdRsLqgBGbah
|
||||
cApBDOomZOedPzLxkKY/0jYtXYEAXUtD2xQafgxpmERKKKSUIAwwbHfV3e08c3947/t8v3Xe9Li7J3nl
|
||||
eb7f7/N9Xp/P53keAkA95xM+dpzb+NuucjpoVUTl2Ssl22yVUVIek0BXhYSJFrFWxJC1MoKtMvb/QoKg
|
||||
70pO76S9FqO6I0899Wl/6b6QsuSqz/B5Lid1eOo2/NFTF3fJXRv7satGUuioWrPTdnZNMoviOstZXB79
|
||||
|
@ -201,8 +201,8 @@
|
|||
<data name="btnAdd.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK7gAA
|
||||
Cu4BrzForAAABopJREFUSEuFlQlMm+cZx5+gHEtThbA1tAnqksJQCOIQxIJEKhaH6CKWNWOji9JGgQgc
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK7QAA
|
||||
Cu0BAohJwQAABopJREFUSEuFlQlMm+cZx5+gHEtThbA1tAnqksJQCOIQxIJEKhaH6CKWNWOji9JGgQgc
|
||||
OUGElEOUKYeSIBKJYwHkYwZkw2wiQIAFRGD02chHwYhDPkpwOFTCKIi0g0TtpK3e9t9jk6RjWjZLP316
|
||||
/VnP733+76PXNFQRZTZVnzDri95s68qn2p7CHeX6woALPfl0sjufYpi3uy7Tj/gddVzexmw+O5mu/ADq
|
||||
Ltj+PyFzfdqfnozrsGCuhatDglH1WdjbSzDecx1jbXn/mNCc3hhTJc/b6yLGJu+H9Ntr3tWYK/bfFa7v
|
||||
|
@ -236,8 +236,8 @@
|
|||
<data name="btnExport.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK7gAA
|
||||
Cu4BrzForAAABYhJREFUSEu1lmtMU2cYx+s0MWZzMXPuw25xbsIyzaZzLrt8MTijEoNxMufmZtRlQFYI
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK7QAA
|
||||
Cu0BAohJwQAABYhJREFUSEu1lmtMU2cYx+s0MWZzMXPuw25xbsIyzaZzLrt8MTijEoNxMufmZtRlQFYI
|
||||
0IiNwICGlrRl0KZQsQxsoARoWghtWppe1st6SQujEEpTRMBoGZdgDGrAhRj/e86JNdTb/LIm//T09O3/
|
||||
91ze5z3lLC8vc55Hn2xYu0nAzdqRlf7VludZn1jzTHPhOd5Op8VcGQiF/vAPDF7xDgzOkq4H+vpDPrfr
|
||||
d41ScZjD4ax5FvCJgLTdu1K7tZ0mayAEja8fMnsAQrMH5UYXyg0uiOha6QyiO9APk8l0Jf/MqeNPgzwG
|
||||
|
@ -267,8 +267,8 @@
|
|||
<data name="btnSave.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK7gAA
|
||||
Cu4BrzForAAABf1JREFUSEuFlg9I1GcYx9+zSVvltoQlYVvGHGuKBalYMRZWLAYr+sNcRNElptPEklno
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK7QAA
|
||||
Cu0BAohJwQAABf1JREFUSEuFlg9I1GcYx9+zSVvltoQlYVvGHGuKBalYMRZWLAYr+sNcRNElptPEklno
|
||||
RjncoialeB73hztvpzdPd7/b/dnl4d3hJaachp74hzvlTjGdunXFqrU2Juy75/c2Xa2jPfDhXn78eD7v
|
||||
87x/fscAMMfZ1fn2slfOCIVsv/kU224tlrxtKWaracxEhFMSjpkTw8zFMcxSsoxZiv8fJgrcF9M6RuwV
|
||||
8KkPwnl+3a/28rXzbZVv9TvPr7U5y19UOc8u+7LtU0netVKWbS+NTaXk64QiyUpTIckLJc8VcUF71cYf
|
||||
|
@ -300,8 +300,8 @@
|
|||
<data name="btnDelete.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK7gAA
|
||||
Cu4BrzForAAABl5JREFUSEuFlX1sE+cdx69hW7sipGpMTFUzhtZW2zppLx2TVg1lK0ih01hHh/IyxASb
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAK7QAA
|
||||
Cu0BAohJwQAABl5JREFUSEuFlX1sE+cdx69hW7sipGpMTFUzhtZW2zppLx2TVg1lK0ih01hHh/IyxASb
|
||||
EhAOoqEiE4WRREkocRYc4QRCRkz90iSuk9QvPdvYbhLLsWfixnZ9vtpO/TI7rhNj53L27c5HQ8Jvz7G1
|
||||
2h8mtfTRc+fn8fdzz+93eowBACbgcrkwi8WCabWTu8bGRn89olLWjagUzSNKRbdSfuvajcHrw73ibllb
|
||||
64Whcy1n+1rOnrnYevHCX6RX+36nHhv7qcFg2DY1NfUw5/NMYfziRqfT1XV2dn4gFvdQff2DMCQfBYVa
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue