This question is locked. New answers and comments are not allowed.
I am attempting to insert a polygon inside a RadGrid cell in code behind; the actual polygon that is inserted will depend on some conditions not yet reflected in the code below. I've built a sample polygon, but I can't find the method to add it to the cell. Can anyone tell me what I need to do here? This has to happen in the code behind; I can't do it in the XAML.
void gvAGSE_RowLoaded(object sender, RowLoadedEventArgs e)
{
if (e.Row is GridViewRow && !(e.Row is GridViewNewRow))
{
foreach (GridViewCell cell in e.Row.Cells)
{
if (cell.Column.Header.ToString().Contains("%"))
{
double cellValue = (double)cell.Value;
if (cellValue >= 0)
{
cell.Background = GetFMCBackgroundColorCode(cellValue);
cell.Foreground = GetFMCForegroundColorCode(cellValue);
Polygon poly = downArrow(GetFMCForegroundColorCode(cellValue));
//cell.Child.Insert(poly);
}
else
{
cell.Content = "N/A";
}
}
}
}
}