I have created grid programmatically using ITemplate following your tutorial http://www.telerik.com/help/aspnet-ajax/grid-programmatic-creation.html#Section4
Now, I keep getting message 'Object reference not set to an instance of an object' indicating that there is no such control in that item, when I try to access control within 'MyTemplate : ITemplate' in some method.
For example:
var someString = ((LiteralControl)radGrid1.Items[index].FindControl("SomeControl")).Text;
Grid itself has correct number of items, but no programmatically created controls are there.
Please, help.
Thanks.
Now, I keep getting message 'Object reference not set to an instance of an object' indicating that there is no such control in that item, when I try to access control within 'MyTemplate : ITemplate' in some method.
For example:
var someString = ((LiteralControl)radGrid1.Items[index].FindControl("SomeControl")).Text;
Grid itself has correct number of items, but no programmatically created controls are there.
Please, help.
Thanks.