Hi,
How can I get or calculate actual size of cell in InitializeLayout ?
Thanks.
Hello,
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.
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.