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;
using Telerik.Web.UI;
using System.Data.OleDb;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Data.Common;

public partial class _Default : System.Web.UI.Page
{

    protected void Button1_Click(object sender, EventArgs e)
    {
        if (RadGrid1.SelectedItems.Count > 0)
        {
            GridDataItem dataItem = (GridDataItem)RadGrid1.SelectedItems[0];
            Hashtable newValues = new Hashtable();
            newValues["CompanyName"] = "CompanyName";
            newValues["ContactName"] = "ContactName";
            newValues["ContactTitle"] = "ContactTitle";
            newValues["Address"] = "Address";
            RadGrid1.MasterTableView.InsertItem(newValues);
        }
    }
}
