I am iterating through my grid as below and need to base some logic on whether the grid column in question - gridField is a template field or a bound field of the grid.
foreach (GridField gridField in wdg.Columns)
Hope someone can help.
Hi asanghi,
Could you try the following?
bool isTemplate = gridField is TemplateDataField;
If that doesn't quite work, you could try getting the actual type. And then compare it to typeof(TemplateDataField).
regards,
David Young