Datagridview自定义checklistbox问题

Datagridview自定义checklistbox问题

本文介绍了Datagridview自定义checklistbox问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此链接



[]



在datagridview上创建一个checklistbox列。一切正常,直到新行添加到datagridview的底部,其中清单框中的项目没有显示完整列表并且缺少向下箭头滚动条。



感谢任何帮助和建议。谢谢。



我尝试了什么:



VScrollBar,checklistbox ,datagridview

I'm using this link

Place CheckListBox inside DatagridView[^]

to create a checklistbox column on the datagridview. Everything works fine until new rows added reaching the bottom of the datagridview where the items in the checklist box didn't show the full list and the down arrow scrollbar is missing.

Any help and suggestion are appreciated. Thank you.

What I have tried:

VScrollBar, checklistbox,datagridview

推荐答案

WS_VSCROLL and WS_HSCROLL

When either or both of these styles are specified for a list box, scroll bars are created for the list box.

A vertical scroll bar is displayed when there are more items in a list box without the LBS_MULTICOLUMN style than can be displayed at one time. Without a scroll style (WS_VSCROLL or WS_HSCROLL), the list box will not display a vertical scroll bar, although the list box still scrolls when the user uses the mouse or keyboard. List boxes with the LBS_MULTICOLUMN style cannot scroll vertically, so no vertical scroll bar is displayed.


这篇关于Datagridview自定义checklistbox问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 10:46