Hi guys, i am converting some asp.net controls to silverlight. Is there something similiar to asp.net EditItemTemplate in DataGrid or listBox?
A:
With the DataGrid you will have control over the Item and the EditingItem. Check this series of DataGrid related posts on my blog:
smoura
2010-01-26 11:45:08
Thanks for your reply, i will review your links shortly
Igor Pistolyaka
2010-01-26 12:00:17
Many of the principles are the same but these WPF examples use techniques not available in Silverlight
AnthonyWJones
2010-01-26 12:03:33
True... It is not boiler plate code that one can copy / paste. Adapting it to Silverlight should not be a problem though.
smoura
2010-01-26 12:09:16
A:
Edit templating in the Silverlight DataGrid
is performed at the cell level. If the DataGrid
default choices are not what you need then you need to use the DataGridTemplateColumn and define both a CellTemplate
and a CellEditingTemplate
.
The ListBox
does not support the context of an "edit mode" however you can supply an ItemTemplate
which contains control such as TextBox
which will allow editing of the underlying data.
AnthonyWJones
2010-01-26 12:02:11