CodePudding user response:
Operations, such as excel form,CodePudding user response:
Demonstration function, the main control is DataGridView, this is a table control, generally used for data display, you can add or modify the data columns, for it can directly edit the column type (which is also the default column type) called DataGridViewTextBoxColumn, in addition, there are DataGridViewButtonColumn (button), DataGridViewCheckBoxColumn (check box), DataGridViewComboBoxColumn (drop-down box), and other different column type,In addition, the menu in the demo, it is a simple right-click menu controls, name is ContextMenuStrip,
Want to realize the function in the demo, you need to add these two controls, and set the DataGridView ContextMenuStrip to this menu control, effect is, click the form will pop up menu,
In addition, the development of specific functions (such as bulk changes, delete records, rights and record) need fixing the action object, can be read by the DataGridView selected area (or selected column, select the row) to obtain, look on the specific function you write code, there is a problem again,
CodePudding user response:
Online have similar GridCtrl example, right-click menu can be added, processingCodePudding user response:
https://www.codeproject.com/Articles/313/Using-the-Grid-Control-in-a-Doc-View-frameworkIf there is a help to take a look at this
CodePudding user response:
The custom grid controlCodePudding user response:
Direct native VC control can not achieve this effect, can only be yourself based on the original control to redraw, or use similar duilib such third party libraries to design the effect, use duilib, the effect is very simple, and the effect can do better than thisCodePudding user response: