Slow and steady Silverlight (17)

Source: Internet
Author: User
Tags silverlight

Introduced

Silverlight 2.0 detailed DataGrid, binding data to ListBox:

AutoGenerateColumns-Automatically generate columns based on data source

Rowdetailsvisibilitymode-display mode used when displaying detailed data for the corresponding row

Datagrid.columns-Manually define the columns of the DataGrid

Datagrid.rowdetailstemplate-template for displaying detailed data for the corresponding row

Arerowdetailsfrozen-whether to freeze Rowdetailstemplate

GridLinesVisibility-How table dividers are displayed

Rowbackground-odd data row background

Alternatingrowbackground-even data row background

IsReadOnly-whether the cell is read-only

Frozencolumncount-The total number of columns frozen in the table (starting from the left)

SelectionMode-Select mode for row

Canuserreordercolumns-Allow dragging of columns

Canuserresizecolumns-Allows you to change the width of the column

Canusersortcolumns-whether to allow column sorting

Verticalgridlinesbrush-Changing the vertical divider line of the table Brush

Horizontalgridlinesbrush-Changing the horizontal divider line of the table Brush

Headersvisibility-Display of headers (including column headers and wardrobe)

Online Demo

Http://www.cnblogs.com/webabcd/archive/2008/10/09/1307486.html

Example

SourceDataModel.cs

using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Silverlight20.Data
{
  public class SourceDataModel
  {
    public string Name { get; set; }
    public int Age { get; set; }
    public DateTime DayOfBirth { get; set; }
    public bool Male { get; set; }
  }
}

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.