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

Individual Cell Selection and Read Only

1 Answer 167 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 14 Sep 2007, 12:19 AM
Ok, I've got quite a complicated table that I need to display:
http://www.byzza.net/bs.gif (excel screenshot of what I need)
basicly all the blue area's need to be read only.
Its a fairly static structure, so I can work with cell coordinates.

From what I've seen I can't set an individual cell to read only (if there is a way, do you have a code example that could help), so basicly what I want to do is:
OnCellClick: If Cells is a Blue cell (I can determine that by cell co-ords) Select a different Cell.

But I Can't find a Cell.Select Method.

Can anyone help me with this.

Thank you in advance.

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 14 Sep 2007, 04:19 PM
Hi Tony De Wit,

Thank you for this detailed feature request.

We answered to your question about read only cells in the other forum post.

Regarding your second question, you can select a cell by setting the CurrentRow and CurrentColumn properties and then updating RadGridView's visual state. See this code:

this.radGridView1.CurrentRow = this.radGridView1.Rows[2];
this.radGridView1.MasterGridViewTemplate.CurrentColumn = this.radGridView1.Columns[2];
this.radGridView1.GridElement.Update(false);

Your theme must be adjusted to show the current row in different color. The default themes that come with RadControls don't have such settings. Please tell us, if you need additional assistance with themes.

 
All the best,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Tony
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or