Silverlight DataGrid control Column Binding Properties note

Source: Internet
Author: User
Tags silverlight

<data:datagridtemplatecolumn header="leave a message to the author"> <data:DataGridTemplateColumn.CellTemplate> <DataTemplate> <textblock text="{Binding SendMessage}"/> </DataTemplate> </data:DataGridTemplateColumn.CellTemplate>                            <data:DataGridTemplateColumn.CellEditingTemplate> <DataTemplate> <textbox text="{Binding Sendmessage,mode=twoway}"/> </DataTemplate> </data:datagridtemplatecolumn.celleditingtemplate > </data:DataGridTemplateColumn>

Through this case, we can see

Mode=oneway, changes to the data object can affect the DataGrid row, and modifying the data in the DataGrid row does not affect the data object

Mode=onetime, the data object change does not affect the DataGrid row, and modifying the data in the DataGrid row does not affect the data object

Mode=twoway, data object changes can affect the DataGrid row, and modifying data in the DataGrid row can affect the data object

If you have an edit template when you double-click the row, the data will be retrieved from the data object.

Silverlight DataGrid control Column Binding Properties note

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.