I've hit a dilemma that I hope has an obvious answer that I've overlooked.
I am creating a radgrid completely in the code-behind (page_init) and adding it to a place-holding panel in my page. Since I want to do advance databinding and will need to handle the NeedDataSource event, I expected to then create a handler for it in the code-behind as well.
Since the control isn't in the .aspx page, there is no object reference for it during the design-time programming of the code-behind and I get compilation errors for a function that says it is handling an event for a control that doesn't yet exist.
Is there a way around or through this problem?
Mike
I am creating a radgrid completely in the code-behind (page_init) and adding it to a place-holding panel in my page. Since I want to do advance databinding and will need to handle the NeedDataSource event, I expected to then create a handler for it in the code-behind as well.
Since the control isn't in the .aspx page, there is no object reference for it during the design-time programming of the code-behind and I get compilation errors for a function that says it is handling an event for a control that doesn't yet exist.
Is there a way around or through this problem?
Mike