This is a migrated thread and some comments may be shown as answers.

layout cycle when dealing with column width

0 Answers 43 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Aeroth
Top achievements
Rank 1
Aeroth asked on 12 Oct 2011, 02:24 PM
Hi Telerik support,

I've encountered a problem when setting grid view column width, here's the error message:
layout cycle detected.  layout could not complete

code snippets:
private void _gridView_DataLoaded(object sender, EventArgs e)
{
    foreach (GridViewColumn column in this._gridView.Columns)
    {
        column.Width = new GridViewLength(1, GridViewLengthUnitType.Star);
    }
}

Version: 2010.3.1314.1040

Regards,
Aeroth Lin

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Aeroth
Top achievements
Rank 1
Share this question
or