Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
Control when an Ultra Grid Row Edit Template pops up.
posted
I am wondering if there is a way to have the Ultra Grid Row Edit Template only pop up on certain cells?   Example, I have a grid with a date column and some decimal columns that are best edited in a grid but have a notes column that is better to edit in the pop up template.
 
So to recap, I only want the template to pop up on certain cells and not others.  Seems this would be very handy.
  • 37774
    Suggested Answer
    posted

    The quickest way that I can think of to do this is to set the grid.DisplayLayout.Override.RowEditTemplateUIType property to None so that you can manually determine when it should be shown.  You can then use the ClickCell event (available in the 9.1 release, I think) to show the template depending on if it's the column that you want:

    private void ultraGrid1_ClickCell(object sender, ClickCellEventArgs e)
    {
        if (e.Cell.Column.Key == "Column 1")
            e.Cell.Row.ShowEditTemplate();
    }

    -Matt