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;

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


    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
        {
            GridEditFormItem editForm = (GridEditFormItem) e.Item;
            TextBox textBox1 = (TextBox) editForm["CompanyName"].Controls[0];
            TextBox textBox2 = (TextBox)editForm["ContactName"].Controls[0];
            textBox1.Attributes.Add("onchange", "setOtherTextBoxValue('" + textBox2.ClientID + "')");
        }
    }
}
