Gridview Column Index Error

2 posts, 1 answers
  1. Menaka Jayasingha
    Menaka Jayasingha avatar
    1 posts
    Member since:
    May 2010

    Posted 24 Oct 2011 Link to this post

    I upgrade my telerik version from 2010 Q1 to 2011 Q1

    After that there is a error

    Error 241 Property or indexer 'Telerik.WinControls.UI.GridViewColumn.Index' cannot be assigned to -- it is read only

    Sooo I want to know how I can fix this Issue...... 

    Pls let me know if there is a another way to set column index

  2. Answer
    Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 26 Oct 2011 Link to this post

    Hello,

    Since somewhere at the end of last year, you should use 
    radGridView1.Columns.Move(oldIndex, newIndex);

    Hope this helps, if you have any other questions or comments, please let me know,

    Best Regards,
    Emanuel Varga

    Telerik WinForms MVP
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top