[英]TcxGridDBBandedColumn how to move inside band and not move outside of the band
I want in TcxGridDBBandedColumn not to be moved outside of the band. 我希望不要将TcxGridDBBandedColumn中的内容移到该区域之外。 Is that possible?
那可能吗? And if how?
如果怎么办?
The tcxGrid provides a way to get something similar to the behaviour you're envisaging, but it may not give you close enough control over the column-moving behaviour. tcxGrid提供了一种获得与您所设想的行为类似的方式的方法,但它可能无法使您对列移动的行为进行足够的控制。
Load the Devex demo project 'ExpressQuantumGridViewBandedFixedDemo' and run it. 加载Devex演示项目“ ExpressQuantumGridViewBandedFixedDemo”并运行它。
Notice that you can drag the Sunday
column header to drag it to a different position in the Days
band or even into a different band. 请注意,您可以拖动“
Sunday
列标题以将其拖动到“ Days
的其他位置,甚至拖动到其他区域中。
Now, in the Object Inspector, select the btvUsersSchedule.Bands[0]
, open its Options
tree and set HoldOwnColumnsOnly
to True
. 现在,在对象检查器中,选择
btvUsersSchedule.Bands[0]
,打开其“ Options
树,并将HoldOwnColumnsOnly
设置为True
。
Do the same for btvUsersSchedule.Bands[0]
. 对
btvUsersSchedule.Bands[0]
执行相同的btvUsersSchedule.Bands[0]
。
Once done, columns from the Days
band can no longer be dragged into either of those bands. 完成后,
Days
列将不再被拖入任何一个区域中。
Now, you can move the Sunday
column only within the Days
band. 现在,您只能在“
Days
内移动“ Sunday
列。
If the above doesn't fully meet the behaviour you would like, please explain why in terms of that demo, because readers who might be able to help will have access to it. 如果上述方法不能完全满足您的要求,请解释该演示的原因,因为可能会提供帮助的读者可以使用它。
Finally, in the IDE, select the btvUsersScheduleSUNDAY
column in the Object Inspector. 最后,在IDE中,选择对象检查器中的
btvUsersScheduleSUNDAY
列。 Open its Options
tree and set Moving
to False
. 打开其“
Options
树并将“ Moving
为False
设置为。
Now you can't move the Sunday
column at all. 现在,您根本无法移动“
Sunday
列。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.