or
<telerik:RadGrid AutoGenerateColumns="true" ID="googleEarthAnalyticalGrid" OnNeedDataSource="grd_NeedDataSource" AllowFilteringByColumn="True" AllowSorting="True" DataKeyNames="PropertyID, SampleDate" ClientDataKeyNames="PropertyID, SampleDate" PageSize="6" ShowFooter="True" AllowPaging="True" runat="server" GridLines="Both" Skin="Windows7" onitemcommand="grd_ItemCommand" onitemcreated="grd_ItemCreated" GroupingSettings-CaseSensitive="false" oncolumncreated="grid_ColumnCreated" EnableLinqExpressions="true" ondatabound="googleEarthAnalyticalGrid_DataBound" oninit="googleEarthAnalyticalGrid_Init" onitemdatabound="googleEarthAnalyticalGrid_ItemDataBound1"> <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" /> <MasterTableView AutoGenerateColumns="true" EditMode="InPlace" AllowFilteringByColumn="True" ShowFooter="True" DataKeyNames="PropertyID, SampleDate" ClientDataKeyNames="PropertyID, SampleDate" > <CommandItemSettings ShowExportToExcelButton="true" /> </MasterTableView> </telerik:RadGrid>
<telerik:GridTemplateColumn HeaderText="Is Active" UniqueName="Is_Active">
<EditItemTemplate>
<asp:CheckBox id="cbIsActive" runat="server" Checked='<%# Bind("Is_Active") %>' ></asp:CheckBox>
</EditItemTemplate>
<ItemStyle HorizontalAlign="Left" />
<ItemTemplate>
<asp:Label ID="lbIsActive" runat="server" Text='<%# Eval("Is_Active", "{0}") %>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
and protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e) { if (e.CommandName == RadGrid.InitInsertCommandName) { e.Canceled = true; System.Collections.Specialized.ListDictionary newValues = new System.Collections.Specialized.ListDictionary(); newValues["Is_Active"] = false; e.Item.OwnerTableView.InsertItem(); } }