Hi,
How can I get or calculate actual size of cell in InitializeLayout ?
Thanks.
My problem solved.
Thank you for answer.
Hello,
I wanted to know if you were able to solve your issue based on these suggestions or you still need help. Please let me know.
You could do this through the following code:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
{
ultraGrid1.Rows[0].Cells[0].Width;
ultraGrid1.Rows[0].Cells[0].Height;
}
The size could be changed by changing the column's width and row's height:
e.Layout.Bands[0].Columns[0].Width = 33;
ultraGrid1.Rows[0].Height = 33;
You could also use the 'InitializeRow' event when you are referring to a row.
Please do not hesitate to contact me if you need any additional assistance.