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

[Solved] Custom Cell

1 Answer 133 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Simon
Top achievements
Rank 1
Simon asked on 16 Jun 2011, 02:01 AM
Hello,

I did create a custom GridViewColumn to handle a complex type of my own.

I've been able to create the edit control by overiding the CreateCellEditElement function and this work perfectly.

However, I wonder how should the standard element be created.  In fact, I don't need anything fancy here.  I just want to display a formated string (base on a custom DataGridColumn property) like standard text column does.

What is the best way to do this?

Should I create a control in the CreateCellElement or is there a built-in way to handle simple string in a custom GridViewColumn?

Best regards,

Simon

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 16 Jun 2011, 06:42 AM
Hello Simon,

 Indeed you need to create simple TextBlock in CreateCellElement method. 

Kind regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Simon
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or