Make my rating column sortable
This commit is contained in:
parent
496830d01d
commit
c9497ef39e
@ -94,6 +94,7 @@ namespace LibationWinForms.GridView
|
|||||||
|
|
||||||
if (newRating == Rating) return;
|
if (newRating == Rating) return;
|
||||||
|
|
||||||
|
Rating = newRating;
|
||||||
EditingControlValueChanged = true;
|
EditingControlValueChanged = true;
|
||||||
EditingControlDataGridView.NotifyCurrentCellDirty(true);
|
EditingControlDataGridView.NotifyCurrentCellDirty(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,6 +31,8 @@
|
|||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
this.gridEntryDataGridView = new System.Windows.Forms.DataGridView();
|
this.gridEntryDataGridView = new System.Windows.Forms.DataGridView();
|
||||||
|
this.showHideColumnsContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||||
|
this.syncBindingSource = new LibationWinForms.GridView.SyncBindingSource(this.components);
|
||||||
this.removeGVColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
this.removeGVColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||||
this.liberateGVColumn = new LibationWinForms.GridView.LiberateDataGridViewImageButtonColumn();
|
this.liberateGVColumn = new LibationWinForms.GridView.LiberateDataGridViewImageButtonColumn();
|
||||||
this.coverGVColumn = new System.Windows.Forms.DataGridViewImageColumn();
|
this.coverGVColumn = new System.Windows.Forms.DataGridViewImageColumn();
|
||||||
@ -43,11 +45,9 @@
|
|||||||
this.categoryGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.categoryGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.productRatingGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.productRatingGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.purchaseDateGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.purchaseDateGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.myRatingGVColumn = new MyRatingGridViewColumn();
|
this.myRatingGVColumn = new LibationWinForms.GridView.MyRatingGridViewColumn();
|
||||||
this.miscGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.miscGVColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.tagAndDetailsGVColumn = new LibationWinForms.GridView.EditTagsDataGridViewImageButtonColumn();
|
this.tagAndDetailsGVColumn = new LibationWinForms.GridView.EditTagsDataGridViewImageButtonColumn();
|
||||||
this.showHideColumnsContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
|
|
||||||
this.syncBindingSource = new LibationWinForms.GridView.SyncBindingSource(this.components);
|
|
||||||
((System.ComponentModel.ISupportInitialize)(this.gridEntryDataGridView)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.gridEntryDataGridView)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.syncBindingSource)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.syncBindingSource)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
@ -97,6 +97,15 @@
|
|||||||
this.gridEntryDataGridView.CellContextMenuStripNeeded += new System.Windows.Forms.DataGridViewCellContextMenuStripNeededEventHandler(this.gridEntryDataGridView_CellContextMenuStripNeeded);
|
this.gridEntryDataGridView.CellContextMenuStripNeeded += new System.Windows.Forms.DataGridViewCellContextMenuStripNeededEventHandler(this.gridEntryDataGridView_CellContextMenuStripNeeded);
|
||||||
this.gridEntryDataGridView.CellToolTipTextNeeded += new System.Windows.Forms.DataGridViewCellToolTipTextNeededEventHandler(this.gridEntryDataGridView_CellToolTipTextNeeded);
|
this.gridEntryDataGridView.CellToolTipTextNeeded += new System.Windows.Forms.DataGridViewCellToolTipTextNeededEventHandler(this.gridEntryDataGridView_CellToolTipTextNeeded);
|
||||||
//
|
//
|
||||||
|
// showHideColumnsContextMenuStrip
|
||||||
|
//
|
||||||
|
this.showHideColumnsContextMenuStrip.Name = "contextMenuStrip1";
|
||||||
|
this.showHideColumnsContextMenuStrip.Size = new System.Drawing.Size(61, 4);
|
||||||
|
//
|
||||||
|
// syncBindingSource
|
||||||
|
//
|
||||||
|
this.syncBindingSource.DataSource = typeof(LibationWinForms.GridView.GridEntry);
|
||||||
|
//
|
||||||
// removeGVColumn
|
// removeGVColumn
|
||||||
//
|
//
|
||||||
this.removeGVColumn.DataPropertyName = "Remove";
|
this.removeGVColumn.DataPropertyName = "Remove";
|
||||||
@ -204,7 +213,7 @@
|
|||||||
this.myRatingGVColumn.DataPropertyName = "MyRating";
|
this.myRatingGVColumn.DataPropertyName = "MyRating";
|
||||||
this.myRatingGVColumn.HeaderText = "My Rating";
|
this.myRatingGVColumn.HeaderText = "My Rating";
|
||||||
this.myRatingGVColumn.Name = "myRatingGVColumn";
|
this.myRatingGVColumn.Name = "myRatingGVColumn";
|
||||||
this.myRatingGVColumn.ReadOnly = false;
|
this.myRatingGVColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
this.myRatingGVColumn.Width = 108;
|
this.myRatingGVColumn.Width = 108;
|
||||||
//
|
//
|
||||||
// miscGVColumn
|
// miscGVColumn
|
||||||
@ -224,15 +233,6 @@
|
|||||||
this.tagAndDetailsGVColumn.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
this.tagAndDetailsGVColumn.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
||||||
this.tagAndDetailsGVColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
this.tagAndDetailsGVColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
//
|
//
|
||||||
// showHideColumnsContextMenuStrip
|
|
||||||
//
|
|
||||||
this.showHideColumnsContextMenuStrip.Name = "contextMenuStrip1";
|
|
||||||
this.showHideColumnsContextMenuStrip.Size = new System.Drawing.Size(181, 26);
|
|
||||||
//
|
|
||||||
// syncBindingSource
|
|
||||||
//
|
|
||||||
this.syncBindingSource.DataSource = typeof(LibationWinForms.GridView.GridEntry);
|
|
||||||
//
|
|
||||||
// ProductsGrid
|
// ProductsGrid
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user