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
65
Problem With Column Order
posted

In my code I am populating a grid from a datatable using SetDataBinding.  Then I want to loop through the grid and get the column order that I set in the grid designer.  However when I loop, I get the order that is in the datatable and not what I setup in the grid designer.  What am I doing wrong?


ugPenaltyTable.SetDataBinding(m_dsPenaltyMonitor.dtPenalty.DefaultView, "");

Infragistics.Win.UltraWinGrid.ColumnsCollection c = ugPenaltyTable.DisplayLayout.Bands[0].Columns;

foreach (UltraGridColumn column in c)
{
    if (column.Hidden == false)
    {
         strData.Append(column.Header.Caption + "\t");
    }
}

Parents Reply Children
No Data