This is a migrated thread and some comments may be shown as answers.

How to make a bound column ediatable in rad grid

4 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
bineesh
Top achievements
Rank 1
bineesh asked on 08 Jul 2008, 06:40 AM
hi,

I need a help on making a bound column of a radgrid editable. I have bound the column at design time. I need to make a specified column editable from code behind after the data is bound.

can someone help me on this?

Thanks in advance
bineesh..

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 08 Jul 2008, 06:57 AM
Hi bineesh,

Please check the grid examples under "Insert/Update/Delete" category:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Overview/DefaultCS.aspx

Regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Shinu
Top achievements
Rank 2
answered on 08 Jul 2008, 07:18 AM
Hi Bineesh,

Set the ReadOnly property for the rest of the Grid Columns except the one which is to be edited to true and try the following code snippet in the PreRender event.

CS:
  protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
        foreach (GridDataItem item in RadGrid1.MasterTableView.Items) 
        { 
           item.Edit=true
        } 
        RadGrid1.Rebind(); 
    } 


Thanks
Shinu.
0
bineesh
Top achievements
Rank 1
answered on 08 Jul 2008, 08:32 AM
hi,

Thanks for the solution. when i tried that the herirachial feature of the grid vanished.

Can you please help me to find a solution for making a grid column editatble on a cell click without placing any textbox at design time .
I am bounding the data to the column at design time. so after databind  if i click on a cell in a column i need the cell to be made ediatable.

please help me with a soultion.

Thanks in advance,

Bineesh
0
Princy
Top achievements
Rank 2
answered on 08 Jul 2008, 09:40 AM
Hi Bineesh,

I have found an online demo which shows editing with Grid on Row Double Click. Go through it and see whether it helps.
Edit on double-click

Princy.
Tags
Grid
Asked by
bineesh
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Shinu
Top achievements
Rank 2
bineesh
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or