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