or
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="DropDownList_undefined._Default" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>Untitled Page</title></head><body> <form action="Default.aspx" runat="server"> <telerik:RadScriptManager runat="server" id="sm1"></telerik:RadScriptManager> <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="all" /> <asp:DropDownList runat="server" ID="ddlEmpty" Width="150px"></asp:DropDownList> <asp:DropDownList runat="server" ID="ddlPopulated" Width="150px"> <asp:ListItem Text="Item1" Value="Item1"></asp:ListItem> <asp:ListItem Text="Item2" Value="Item2"></asp:ListItem> </asp:DropDownList> </form></body></html>using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;namespace DropDownList_undefined{ public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } }}protected void grid_CreateColumnEditor(object sender,Telerik.Web.UI.GridCreateColumnEditorEventArgs e) { if (//Some condition) { grid.MasterTableView.ClearEditItems(); } }<telerik:RadGrid ID="RadgridDestination" runat="server" AllowSorting="True" ShowGroupPanel="True" AutoGenerateColumns="False" Skin="Sunset" AllowPaging="True" GridLines="None"> <GroupingSettings ShowUnGroupButton="True" /> <ClientSettings AllowDragToGroup="True" allowcolumnsreorder="True" columnsreordermethod="Reorder" reordercolumnsonclient="True" > </ClientSettings> <MasterTableView EditMode="InPlace" DataKeyNames="Destination_ID" GroupLoadMode="Client" > <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings> <Columns> <telerik:GridButtonColumn CommandName="Select" Text="Edit" ButtonType="ImageButton" UniqueName="column1" ImageUrl="Images/Edit.gif"> </telerik:GridButtonColumn> </Columns> <EditFormSettings> <EditColumn UniqueName="EditCommandColumn1"></EditColumn> </EditFormSettings> </MasterTableView> </telerik:RadGrid> <asp:Button ID="btnPkNO" runat="server" CausesValidation="false" Text="NO" />Protected Sub btnPkNO_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnPkNO.Click DestID = RadgridDestination.SelectedValues("Destination_ID") 'I'm getting NullReferenceexception here End Sub<telerik:RadGrid runat="server" ID="grdInvoiceLines" AllowPaging="True" AutoGenerateColumns="false" GridLines="Both" ShowFooter="true" ShowHeader="true" AllowMultiRowSelection="false" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" PageSize="10" AllowAutomaticUpdates="True" OnItemUpdated="grdInvoiceLines_ItemUpdated" OnItemDeleted="grdInvoiceLines_ItemDeleted" OnItemInserted="grdInvoiceLines_ItemInserted" OnDataBound="grdInvoiceLines_DataBound"> <MasterTableView DataKeyNames="InvoiceLineId" CommandItemDisplay="Top" ShowHeadersWhenNoRecords="true" EditMode="InPlace" AllowAutomaticUpdates="True">