Hi,
I have a RadGridView control, which has 9 columns, created at design time. The control is being populated with data at run-time.
I am populating the RadGridView by using the Add method:
After populating I am iterating each row in the control as follows:
I want to get the cell element for the second cell, which I believe I have do do with the GetCellElement method:
However, GetCellElement is always returning Nothing. I can step through the code using the debugger, and both the column and row exist. I have tested GetRowElement, and this also returns nothing.
I need the CellElement as I want to enable and disable the cell based on some criteria. Each row potentially contains child rows.
Why do I always get nothing? Is there a problem with the way I am using GetCellElement, or do I need to iterate the rows differently?
*EDIT* Forgot to say, I am using the latest version of the Telerik controls (Q2 2010 SP2).
Thanks in advance,
Matt.
I have a RadGridView control, which has 9 columns, created at design time. The control is being populated with data at run-time.
I am populating the RadGridView by using the Add method:
RadGridView1.MasterTemplate.Rows.Add(... some values...)
After populating I am iterating each row in the control as follows:
For Each row As GridViewRowInfo In RadGridView1.MasterTemplate.Rows
I want to get the cell element for the second cell, which I believe I have do do with the GetCellElement method:
RadGridView1.TableElement.GetCellElement(row, RadGridView1.MasterTemplate.Columns(1))
However, GetCellElement is always returning Nothing. I can step through the code using the debugger, and both the column and row exist. I have tested GetRowElement, and this also returns nothing.
I need the CellElement as I want to enable and disable the cell based on some criteria. Each row potentially contains child rows.
Why do I always get nothing? Is there a problem with the way I am using GetCellElement, or do I need to iterate the rows differently?
*EDIT* Forgot to say, I am using the latest version of the Telerik controls (Q2 2010 SP2).
Thanks in advance,
Matt.