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

Get the RadDropDownListEditor instance of a GridView cell.

1 Answer 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Maxime
Top achievements
Rank 1
Maxime asked on 19 Oct 2011, 07:40 PM
Hi!

I want to change the Data Source value of a RadDropDownListEditor instance contained by a GridView cell. I want to have that instance by getting the cell element from the RadGridView object with the cell's column and row indexes.

myRadGridView.Rows[cellRowIndex].Cells[cellColumnIndex]

What I'm trying to achieve is to set, dynamically, every Data Source value for every cell of my grid. So, I'm iterate trough my rows and try to set the Data Source value. 

How can I get the RadDropDownListEditor instance of a specified cell?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 20 Oct 2011, 12:56 PM
Hello Maxime,

RadGridView uses editors to enable the users to edit the data in its cells. You can change the DataSource of RadDropDownListEditor using the CellEditorInitialized event of RadGridView. The KB article demonstrates how to accomplish this task.

Please note that we still experct an answer from your in your thread "Customize cell background with images". This information will allow us to continue supporting your enquries.

I hope it helps.

Best regards,
Alexander
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Tags
GridView
Asked by
Maxime
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or