- 4
- 0
- 约1.86千字
- 约 3页
- 2017-03-18 发布于重庆
- 举报
XtraGrid-BandandColumnCustomization运行时修改caption内容
This lesson demonstrates the basics of working with banded Grid Views. I’ll show you to add and delete bands, customize band settings, and change the layout of bands and columns.
1. First, let’s change the view type from GridView to “Advanced Banded Grid View”.
2. You’ll see that all the columns are now under the default band.
3. Let’s add one more band to break the columns up into two logical parts.
4. For this purpose, we need to run the designer.
5. You can add bands and specify their location at the same time by pressing the “Add New Band” button and dragging the mouse pointer to the desired band position.
6. After you’ve added the band, you can click its header to access the band settings.
7. In this example, we can use this feature to change the band caption.
8. To rearrange columns between bands, I simply drag the desired columns and drop them where they are needed.
9. Now I’m done with the layout customizations, so I’ll close the designer.
10. The columns and bands layout can also be customized right on the form.
11. Let’s drag columns one under another, so that the corresponding data cells are arranged to two rows.
12. Let’s now make the grid a little bit more readable, by stretching the columns to fit the entire view.
13. The Column’s “Auto Width View” option needs to be set to true for this particular purpose.
14. Now we need to make the column headers in the second band, occupy two rows.
15. To do this, we simply click the column headers we could use the “Control” or “Shift” key to select multiple columns , and once selected, I set their “Auto Fill Down” property to true to make them stretch down automatically.
16. Finally, let’s change the caption of the “Customer ID” column using the same approach.
17. Now I’m done with banded column customizations, so let’s run the application to see the result.
您可能关注的文档
最近下载
- 2025年房地产经纪人房地产经纪机构目标客户群体定位与细分专题试卷及解析.pdf VIP
- 口腔材料学总论.ppt VIP
- 2026年建设工程造价(工期延误造价)自测试题及答案.doc VIP
- 多发伤的早期评估与多学科协作救治策略.pptx VIP
- RAZ-I英语绘本Healthy Me(带练习册).pdf VIP
- 2025年度组织生活会个人对照检查材料(五个对照+铸牢中华民族共同体意识).docx VIP
- 关于加强规划建设管理的通知.doc VIP
- 故宫文创衍生品课件.pptx VIP
- 2025年注册安全工程师考试(中级)安全生产法律法规试题与参考答案.docx VIP
- (2026春新版本)苏教版数学三年级下册全册教案.doc
原创力文档

文档评论(0)