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

Telerik Grid Accessing Cell Data

1 Answer 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 21 Nov 2008, 05:46 PM
Hello,

I've setup the Telerik grid to auto generate columns from a data table I bound to it.  I have inplace editing setup for this grid, but programmatically I make the first two columns readonly.  So for the rest of the columns (dynamically generated in the data table), I allow the user to edit those.  I make all the rows editable using the following trick:  http://www.telerik.com/help/aspnet-ajax/grddefaulteditmodeforgriditemsoninitialload.html which works well.

Is there a way to be able to use the column in order to find the cell?  What I don't want to do is to hard-code cell indexes for each item that I want to access in code-behind....  is there a way to easily get the cell index for the city column?

Thanks.

1 Answer, 1 is accepted

Sort by
0
SamJ
Top achievements
Rank 1
answered on 22 Nov 2008, 11:02 AM
Hi,

You can access grid cells using the column UniqueName. Check out this topic.

I hope this helps.
Tags
Grid
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
SamJ
Top achievements
Rank 1
Share this question
or