Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
229
Visible columns in visible order
posted

Hi,

I like to retrieve columns of a grid in the current visible order. The code below gives the columns in original order, but I like to have them in displayed order. How can I do that?

tia,  Erik

UltraGridBand CurrentBand = Grid.DisplayLayout.Bands[0];
for (int i = 0; i < CurrentBand.Columns.Count; i++)
{
Column = (
UltraGridColumn)CurrentBand.Columns.GetItem(i);
i
f  (Column.IsVisibleInLayout)
{ // do something }
}

 

 

 

 

Parents Reply Children
No Data