Home > Software engineering >  What controls VC to achieve such effect?
What controls VC to achieve such effect?

Time:09-23

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, processing

CodePudding user response:

https://www.codeproject.com/Articles/313/Using-the-Grid-Control-in-a-Doc-View-framework
If there is a help to take a look at this

CodePudding user response:

The custom grid control

CodePudding 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 this

CodePudding user response:

references 9 f lx624909677 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, this effect is very simple, and the effect can do better than this

V5, praise!

CodePudding user response:

FlexGrid this control can be achieved?

CodePudding user response:

There is no control, direct all custom painting,

The above sequence number, the name here words,

The following data, how many direct line drawing how much line,

If the data volume is not large, the above method is enough

CodePudding user response:

Look for BCG interface library should have

CodePudding user response:

Take a look at this line not line at https://blog.csdn.net/xjkstar/article/details/38087235
  • Related