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
330
UltraWinGrid- Ultragrid Template- Ultragrid cell proxy
posted

Hello,

I have a question regarding ultragrid template within ultrawingrid. Please help me out.

I have an ultrawingrid with 5 columns (date column, textbox column, dropdownlist column and amount columns(multiple)) and I want to add this grid to the windows user control. I want to use template for this ultrawingrid and only for amount columns and I want to enter data for all the other columns within in the grid without using ultragrid template. Moreover, in the template i'll be having one text box for amount with one ultragrid cell proxy. So, can I use the same cell proxy to multiple columns which is for multiple amount columns.  Sample example would be really helpful. Thanks in advance.

Thanks,

AB

Parents
  • 18495
    posted

    Hello AB,

    Thank you for contacting Infragistics.

    The UltraGridCellProxy object can only bind to one column in the grid.  To get the behavior you're looking for, I would recommend handling the AfterCellUpdate event and using code similar to the following.

    if (e.Cell.Column.Key == "columnKey")
    {
        // Repeat the following two lines for all cells you want to set.
        var cell2 = e.Cell.Row.Cells["otherColumnKey"];
        cell2.Value = e.Cell.Value;
    }

    Please let me know if you have any other questions about this.

Reply Children