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

RadGridView GetCellElement problem

3 Answers 150 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fun
Top achievements
Rank 1
Fun asked on 09 Aug 2012, 04:28 PM
Hi everyone

I create class
UserGridCheckBoxCellElement : GridDataCellElement
for show checkbox with text (it must need this title) in RadGridView

I use 
gridDay.TableElement.GetCellElement(rowInfo, cell.ColumnInfo) for find this cell
and update checkbox statut 

I dont know why it is NULL at first time, 
it does not have problems after first time

by the way, i use telerik 2012 Q2


Thanks

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 14 Aug 2012, 12:34 PM
Hello,

Thank you for writing.

In general, you do not need to create a custom cell to have check boxes in cells. You can simply use the GridViewCheckBoxColumn: http://www.telerik.com/help/winforms/gridview-columns-gridviewcheckboxcolumn.html.

If this does not work for you, please describe the entire scenario, so I can point you to the right direction. 

In regards to GetCellElement returning null, I am not able to determine what causes such a behavior without looking at is, so please provide me with code snippets of your implementation and I will investigate what causes this behavior.
 
Kind regards,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Fun
Top achievements
Rank 1
answered on 17 Aug 2012, 03:57 PM
Thanks firstly

because i need some columns with checkbox,
every checkbox must have title,


so , i create UserGridCheckBoxCellElement for this function




0
Stefan
Telerik team
answered on 22 Aug 2012, 06:47 AM
Hi,

We got a ticket regarding the same matter so I assume that you have sent it with another account. If so, please make sure that you post your questions with that account (which has a valid support package) so you will be eligible for our support services.

If not, please make sure that you try to access the CellElement in the Form/UserControl Load event handler.
 
Greetings,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
Fun
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Fun
Top achievements
Rank 1
Share this question
or