Search code examples
c#infragisticsultrawingrid

Reading column value in cell change event


I've an .net winforms screen with infragisitics ultrawingrid bound from the database[Col Names:Id, Name, Age]. Am adding a checkbox column for each row from the client side while showing the grid. Am capturing cell change event when the checkbox is clicked by the user.

In method attached to this event, I want to read the values of the all the cells for the row which is in context...[for eg.I want to read Id,Name,Age column values].How do I progammatically do this ?

Thanks.


Solution

  • UltraGridColumn ugc = myGrid.DisplayLayout.Bands[0].Columns[@"myColumnKey"];
    
    private void mygrid_CellChange(object sender, CellEventArgs e)
    {
        if (StringComparer.OrdinalIgnoreCase.Equals(e.Cell.Column.Key, @"myColumnKey"))
        {
             //something like this
             ugc [@"myColumnKey"][index];
        }
    }