The following code works (dropdown in a grid), but I am after a better way.
Without using 'value member' or the 'display member', how can i get the same result by referencing the grid and dropdown indirectly???
{
Infragistics.Win.UltraWinGrid.UltraGridRow currentRowView = (Infragistics.Win.UltraWinGrid.UltraGridRow)ultraGrid1.DisplayLayout.ActiveRow;
Console.WriteLine(e.Cell.Row.Cells["TaskID"].Value);
myctrl.ActiveRow.Cells["Whom"].Value.ToString() ;
}
This gets the value, but is it possible to use currentRowView.?.?.?.?.value???
Hello buckland,
You could try the code sample I prepared for you:
private void ultraGrid1_CellListSelect(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e) { UltraDropDown drop = (UltraDropDown)e.Cell.ValueListResolved; Console.WriteLine(drop.DisplayLayout.ActiveRow.Cells["Column 1"].Value.ToString()); }
Please review the above code to see if it meets your requirements and feel free to let me know if I misunderstood you or if you have any other questions.