BoldDeskWe are launching BoldDesk on Product Hunt soon.
Learn more & follow us.
I am using GridListControl but I can't set the horizontal alignment to center of one column, I try with:
GridListControl1.Grid.Model.ColStyles(1).HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Center
But this doesn't work.
Thanks for your interest in Syncfusion products.
set the horizontal
alignment to center of one column
Thanks for sharing the information. You could make use of
the following Querycellinfo event. This event will be triggered continuously.
So please make use of the following event.
+= new GridQueryCellInfoEventHandler(Model_QueryCellInfo);
void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs
if (e.ColIndex == 5)
e.Style.HorizontalAlignment = GridHorizontalAlignment.Center;
Please let me know if you have any concerns.