I am writing web parts for MOSS 2007. I am having trouble with the DataBinding at runtime. What normally works with gridviews doesn't seem to work with the UltraGridView.
Code works for GridViews:
{
GridViewRow row = (GridViewRow)l.NamingContainer;
}
Code i'm trying in UltraGridView (which doesn't work):
UltraGridRow row = ((CellItem)l.NamingContainer).Cell.Row;
Any assistance would be greatly appreciated!
OK... A little re-thinking and i came up with this. It always seems that the solution is easier than what i'm trying...
This works in an ITemplate with UltraGridViews:
CellItem ci = (CellItem)l.NamingContainer;