ResultBrowser: ListView behavior fixed, ver.2.7.300
This commit is contained in:
parent
acd614a20d
commit
0a44598fb7
@ -110,32 +110,22 @@ namespace ResultsBrowser.Forms
|
||||
///
|
||||
/// Update ListBox
|
||||
///
|
||||
statisticsListView.Columns.Add(new ColumnHeader { Text = "*", Width = 200 });
|
||||
statisticsListView.Columns.Add(new ColumnHeader { Text = "a", Width = 70 });
|
||||
statisticsListView.Columns.Add(new ColumnHeader { Text = "b", Width = 70 });
|
||||
statisticsListView.View = View.Details;
|
||||
statisticsListView.GridLines = true;
|
||||
statisticsListView.FullRowSelect = true;
|
||||
|
||||
ListViewItem lvi = new ListViewItem("row1");
|
||||
lvi.SubItems.Add("c");
|
||||
lvi.SubItems.Add("d");
|
||||
statisticsListView.Items.Add(lvi);
|
||||
statisticsListView.Columns.Add("*", 200);
|
||||
for (int column = 0; column < columns; column++)
|
||||
{
|
||||
statisticsListView.Columns.Add((twoDim ? columnValues[column] : "Count"), 70);
|
||||
}
|
||||
|
||||
lvi = new ListViewItem("row2");
|
||||
lvi.SubItems.Add("e");
|
||||
lvi.SubItems.Add("f");
|
||||
statisticsListView.Items.Add(lvi);
|
||||
|
||||
//statisticsListView.Columns.Add(new ColumnHeader { Text = "*", Width = 200 });
|
||||
//for (int column = 0; column < columns; column++)
|
||||
//{
|
||||
// statisticsListView.Columns.Add(new ColumnHeader { Text = twoDim ? columnValues[column] : "Count", Width = 70 });
|
||||
//}
|
||||
|
||||
//for (int row = 0; row < rowValues.Count; row++)
|
||||
//{
|
||||
// ListViewItem lvi = new ListViewItem(rowValues[row]);
|
||||
// for (int column = 0; column < columns; column++) lvi.SubItems.Add(occurances[row, column].ToString());
|
||||
// statisticsListView.Items.Add(lvi);
|
||||
//}
|
||||
for (int row = 0; row < rowValues.Count; row++)
|
||||
{
|
||||
ListViewItem lvi = new ListViewItem(rowValues[row]);
|
||||
for (int column = 0; column < columns; column++) lvi.SubItems.Add(occurances[row, column].ToString());
|
||||
statisticsListView.Items.Add(lvi);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("2.4.250.0")]
|
||||
[assembly: AssemblyFileVersion("2.4.250.0")]
|
||||
[assembly: AssemblyVersion("2.7.300.0")]
|
||||
[assembly: AssemblyFileVersion("2.7.300.0")]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user