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
315
Rendering control on ultrawingridcells
posted

I would like to use a rendering control which has reference to two different cells.

If I override the the ControlContainerEditor class, the RendererValue property set the value from one cell.

If I would like to represent for example an interval, set on 2 different column, is there any possiblity to have a reference to the value from an other column cell?

Parents
No Data
Reply
  • 7535
    Offline posted

    Hello Iacos ,

    To have a reference to the value from another column cells, you could either use the GetCellValue Method or reference the Cell Values Directly.

    You can get the cell value using GetCellValue like this :

    UltraGridColumn Col2Column = e.Row.Band.Columns["Col1"];
    e.Row.Cells["Col2"].Value = (string)e.Row.GetCellValue(Col2Column);

    You can get the cell value directly like this :

    e.Row.Cells["Col2"].Value = e.Row.Cells["Col1"].Value;

    Here I am trying to get the cell values of Col1 and assign it to Col2.

    You can also refer this online document for more information and a sample.

    https://ko.infragistics.com/help/winforms/wingrid-memory-usage

    Please let me know if you need further assistance.

Children