Hi,
Hello,
What you could do in your case is to iterate columns' collection and to sum their width, so when this sum is more that the width of UltraGdid, this meant that the last column involved in this sum is part-visible. So you could use code like:
int totalColWidth = 0; int colIndex = 0; while (totalColWidth < ultraGrid1.Width && colIndex != -1) { totalColWidth += ultraGrid1.DisplayLayout.Bands[0].Columns[colIndex].Width; colIndex++; if (colIndex >= ultraGrid1.DisplayLayout.Bands[0].Columns.Count) colIndex = -1; } // column at index colIndex is part visible if colIndex = -1 all columns are full visible
Please let me know if you have any further questions.
Thank you very much Hristo, that idea handles it.