The DataGrid of--c#, assistant to the big worker

Source: Internet
Author: User

Assistant to the big worker

Basic content
    • Work Assistant (Desktop version)
    • Achieve landing, check results, calculate weighted average points and other functions
Team members
    • 13070002 sheets of rain sail
    • 13070003 Sail
    • 13070004 Cui Wei
    • 13070006 Wang Nai
    • 13070045 Wang Tianmi
    • 13070046 Sun Yuchen
the DataGrid of C #

The Part I am responsible for in the team project is the client interface authoring. I need to show the information that the user needs when they query the information. I use the DataGrid here, and I think it's very handy to use the DataGrid to display the data, so I'll summarize the use of the DataGrid here.

The function of the DataGrid control is simply to show the table, using a direct link to the database file, or you can see a Table object, linked to the DataGrid control. The DataGrid is a fixed set of columns, and the number of rows in each column is indeterminate.

The DataGrid also works well with the DataTable to display the data stored in the DataTable. A DataTable can be thought of as a sheet,datatable in Excel that contains attributes columns and rows that represent columns and rows, which can be considered as columns in a sheet. (see Zhang Fan's blog)

The DataGrid property ItemsSource is used to display the data directly equal to the DefaultView property of the DataTable to display the table.

Then attach the code I use for the DataGrid in C #:

 <datagrid x:name= datagrid1  Span style= "color: #800000;" > " Horizontalalignment="  left  Span style= "color: #800000;" > " Height="  372   " Margin="  92,161,0,0   " Verticalalignment="  top   " Width="  609   " Isreadonly="  true   " > </datagrid> 
                dataGrid1.ItemsSource = dt. DefaultView;

The DataGrid of--c#, assistant to the big worker

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.