mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
Column sorting changes for ZygardeCell editor (#2249)
Now you can sort the Available stickers to the top. Also a change to have the "Ref" sort integers instead of strings. Now it doesn't go 1\n11\n etc
This commit is contained in:
parent
194ddb7c18
commit
095ec241ae
2 changed files with 3 additions and 1 deletions
|
@ -90,6 +90,7 @@
|
|||
this.dgv_val.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.dgv_val.HeaderText = "Value";
|
||||
this.dgv_val.Name = "dgv_val";
|
||||
this.dgv_val.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
//
|
||||
// B_Cancel
|
||||
//
|
||||
|
|
|
@ -31,6 +31,7 @@ namespace PKHeX.WinForms
|
|||
var combo = dgv.Columns[2] as DataGridViewComboBoxColumn;
|
||||
foreach (string t in states)
|
||||
combo.Items.Add(t); // add only the Names
|
||||
dgv.Columns[0].ValueType = typeof(int);
|
||||
|
||||
// Populate Grid
|
||||
dgv.Rows.Add(CellCount);
|
||||
|
@ -40,7 +41,7 @@ namespace PKHeX.WinForms
|
|||
if (cells[i] > 2)
|
||||
throw new ArgumentException();
|
||||
|
||||
dgv.Rows[i].Cells[0].Value = (i+1).ToString();
|
||||
dgv.Rows[i].Cells[0].Value = (i+1);
|
||||
dgv.Rows[i].Cells[1].Value = locations[i];
|
||||
dgv.Rows[i].Cells[2].Value = states[cells[i]];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue