Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I thought that Column.Alignment applies to the whole column , but it is only to a header. What can I do?

applies column header
0
Posted

I thought that Column.Alignment applies to the whole column , but it is only to a header. What can I do?

0

The Column.Alignment property aligns the whole column. The problem you have encountered is that the column that paints the hierarchy ( the TreeColumnIndex property specifies the index of the column where the hierarchy is painted ) can’t be centered, so you need to call: With Grid1 .TreeColumnIndex = -1 End With in case you are using the control to load a flat table. By default, the TreeColumnIndex is 0, and it points to the first column of the control. Use the Column.HeaderAlignment property to align the column’s header.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123