layout cycle when dealing with column width

1 posts, 0 answers
  1. Aeroth
    Aeroth avatar
    17 posts
    Member since:
    Oct 2010

    Posted 12 Oct 2011 Link to this post

    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
Back to Top