GridElement Begin and EndUpdate Does not seem to always work

2 posts, 0 answers
  1. sculver
    sculver avatar
    3 posts
    Member since:
    Aug 2006

    Posted 22 Sep 2008 Link to this post

    I have a Windows Form GridView object that I am populating.  I need to allow the user to change the order of items in the list.  To do this, I have two buttons, MoveUp and MoveDown to let them.  For simplicity sake, I have left out a lot of error checking code from my post.

    My problem is that I am calling the GridElement.BeginUpdate() and GridElement.EndUpdate() methods, and for the MoveUp it works just fine, however, oddly enough, the MoveDown causes a flicker effect, which is not supposed to happen (I think) if I am using these methods correctly.

    Here is the portion of my code that is doing this action, as you can see the same code is running in both instances, I am just passing in a different change:


    void btnMoveUp_Click(object sender, EventArgs e)

    private void btnMoveDown_Click(object sender, EventArgs e)

    private void MoveCurrentItem(int indexChange)
        if (radgvScriptsList.SelectedRows.Count == 1)
    file = GetSelectedFile();
            int oldIndex = Files.IndexOf(file);
            Files.Insert((oldIndex + indexChange), file);
            radgvScriptsList.Rows[(oldIndex + indexChange)].IsCurrent =

  2. Jack
    Jack avatar
    2333 posts

    Posted 24 Sep 2008 Link to this post

    Hello sculver,

    I could not reproduce the flickering issue with our latest release Q2 2008 SP1. I strongly recommend updating to this version of RadControls, as a number of improvements have been made since the release of Q2 2008.

    If the problem persists, please send me your application in a support ticket. This will help me locate the issue and address it faster.

    Thank you in advance for your cooperation.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top