Skip to main content

Additional data and sorting and index

Comments

7 comments

  • Dapfor Team

    Hello,

    It seems you bind BindingList which has the IBindingList.AllowNew property. This property by default returns 'true' and the grid displays a row enabling the user to add new data to the collection. To prevent him from this behavior, you should set Grid.DataConnection.AllowNew property to false:

    grid.DataConnection.AllowNew = false;

    Best regards,

    Dapfor

     

     

    0
  • yang sun yeol

    1 the user has to align the grid
    2. DataConnection.AllowNew = FALSE
    3 data add
    4. DataConnection.AllowNew = true and change


    However, the problem still occurs.

    Because my data is sorted and moved to the top row
    I change the color of the bottom line to be.  <- error

    I needed to add data change the color of the data.

    0
  • yang sun yeol

    Sorting and add data to, regardless of

    Finally, add the data I need to change the color of the sample

    0
  • Dapfor Team

    Hello,

    Do you need to mark newly added data for a some amount of time or the latest row should be red until a new data is added?

    Regards,

    Dapfor

     

    0
  • yang sun yeol

    I'd like to add and change color at the same time.
    It allows users to add new, or changed, in order to inform that place.

    It is the sooner the better.

    0
  • Dapfor Team

    Dear Yang Sun Yeol,

    The following code demonstrates how to blink newly added rows for 2 seconds:

     

    grid.RowAdded += delegate(object sender, GridRowEventArgs e)
    {
        //Blink newly added row for 2 seconds
        foreach (Column column in e.Row.Header)
        {
            e.Row[column.Id].Highlight(TimeSpan.FromSeconds(2), Color.Red);
        }

        //Ensure visible newly added row (i.e. scroll the content)
        e.Row.EnsureVisible();
    };

     

    Best regards,

    Dapfor

     

    0
  • yang sun yeol

    thanks..~ that Good

    0

Please sign in to leave a comment.

Powered by Zendesk