Hi, I'm having troubles using RadGrid.
I am using the following declaration to create a TemplateColumn:
I want to modify the SelectedValue property of the DropDownList in the EditItemTemplate when the row goes in Edit Mode.
But the problem is that whenever I search the dropdownlist in a GridEditableItem (inside EditCommand event, for example), I receive the 'NullReferenceException'.
How can I solve this problem?
Thanks in advance.
PS: I'm using RadControl 3.5 in ASP.NET 3.5.
I am using the following declaration to create a TemplateColumn:
| <rad:GridTemplateColumn UniqueName="masterpage" HeaderText="<%$ Resources:Grids,Portals_MasterPage %>" > | |
| <ItemTemplate><asp:Label ID="labelMasterPage" runat="server" Text='<%# GetFileName(Eval("masterpagefile").ToString()) %>' /></ItemTemplate> | |
| <EditItemTemplate> | |
| <asp:DropDownList ID="dropDownFileNames" runat="server" DataSource='<%# GetMasterPages(Eval("homedirectory").ToString()) %>' /> | |
| </EditItemTemplate> | |
| </rad:GridTemplateColumn> |
But the problem is that whenever I search the dropdownlist in a GridEditableItem (inside EditCommand event, for example), I receive the 'NullReferenceException'.
How can I solve this problem?
Thanks in advance.
PS: I'm using RadControl 3.5 in ASP.NET 3.5.