Home > Net >  Custom DataGridViewColumn problem
Custom DataGridViewColumn problem

Time:09-28

The custom of a column and cell,
But don't know how can expand and contract the event to the DataGridView events, if each cell add event is very troublesome, need to customize the DataGridView,

CodePudding user response:

No one to answer? 0 0

CodePudding user response:

Cell click event, and then determine which cell, click to judge the contraction and expansion

CodePudding user response:

The second floor is a way,
This is a list of the custom control?
If is DataGridTemplateColumn here put custom controls, the list of data binding, not define an event,

CodePudding user response:

reference Nick_Ngai reply: 3/f
2 floor is a way,
This is a list of the custom control?
DataGridTemplateColumn here put custom controls, if is the list of data binding, not defined, an event
contraction all of these can be realized through the datagridview click event, I added some custom events in the cell, than if the unfolding events before, now is the need to each cell to add to this event, I want to know is there any way is with this event in datagridview, datagridview to add this event, then all on cell,

CodePudding user response:

Don't DataGridView. CellEnter this event can be

CodePudding user response:

DataGridView. CellEnter here which is will also be able to get into the cell
  •  Tags:  
  • C#
  • Related