Click here to Skip to main content
15,851,242 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
i have talbe Custom_Fields_Master:
CFM_ID int
CFM_Field1 vanrch
CFM_Value1 varchar
CFM_Field2 varchar
CFM_Value2 varchar
CFM_Field3 varcahr
CFM_Value3 varchar
i want to perform curd operations like ---INSERT,DELETE,UPDATE records in RADGRID.
please help me.

we did not use static datasource binding.
write DBConnection code in radgrid.aspx.cs file.
please solv it.

Thanks in Advance.........
Legor 27-Sep-12 8:17am    
Where are you stuck then?
Balu Balaji 27-Sep-12 8:53am    
i want to perform CURD Operations on it
Tim Corey 27-Sep-12 9:01am    
What Legor is alluding to is the fact that you seem to be asking us to do your job. We aren't here to write your code. We are here to help you if you get stuck. Just asking for us to write your CRUD operations is not a valid question. Try to accomplish it. Get some examples from Telerik. They have excellent documentation, so that will at least get you started.
Balu Balaji 27-Sep-12 9:26am    
i mean how to get data from textboxes(txtField1,......)

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CustomField.aspx.cs" Inherits="CustomField" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
<form id="Form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
<telerik:RadAjaxPanel ID="RadAjaxPanel" runat="server">
<br />
<telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="False"
AllowPaging="True" CellSpacing="0" GridLines="None" PageSize="2"
önupdatecommand="RadGrid1_UpdateCommand" >
<mastertableview commanditemdisplay="Top" datakeynames="CFM_ID">
<telerik:gridtemplatecolumn uniquename="TemplateColumn">
<asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="false" CommandName="Edit" Text="Edit"/>

<telerik:gridboundcolumn datafield="CFM_ID" headertext="CustomerFieldID" uniquename="CFM_ID" readonly="true">
<telerik:gridboundcolumn datafield="CFM_Field1" headertext="CustomerField1" uniquename="CFM_Field1">
<telerik:gridboundcolumn datafield="CFM_Value1" headertext="CustomerValue1" uniquename="CFM_Value1">
<telerik:gridboundcolumn datafield="CFM_Field2" headertext="CustomerField3" uniquename="CFM_Field2">
<telerik:gridboundcolumn datafield="CFM_Value2" headertext="CustomerValue2" uniquename="CFM_Value2">
<telerik:gridboundcolumn datafield="CFM_Field3" headertext="CustomerField3" uniquename="CFM_Field3">
<telerik:gridboundcolumn datafield="CFM_Value3" headertext="CustomerValue3" uniquename="CFM_Value3">

<editformsettings editformtype="Template">
<table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none"
style="border-collapse: collapse; background: white;">
<tr class="EditFormHeader">
<td colspan="2" style="font-size: small">
Custom Field Details
<table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0" class="module">

<asp:TextBox ID="txtCF1" runat="server" Tex

protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
        if (e.CommandName == "cmdBind")
            LinkButton lb = (LinkButton)e.CommandSource;
            int index = Convert.ToInt32(lb.CommandArgument);

            //Bind values in the text box of the pop up control
            TextBox1.Text = GridView1.Rows[index].Cells[0].Text;
            TextBox2.Text = GridView1.Rows[index].Cells[1].Text;
            TextBox3.Text = GridView1.Rows[index].Cells[2].Text;
Share this answer
try to see this demo"
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900