Summary

 
Chapter 10 - Viewing .NET Data
bySimon Robinsonet al.
Wrox Press 2002
  

This chapter has introduced some of the methods of displaying data under .NET. There are a large number of classes to be explored in System.Windows.Forms , and we've shown how to use the DataGrid to display data from many different data sources, such as an Array , DataTable, or DataSet .

The DataGrid control has many innovative capabilities - not least the ability to navigate parent-child relationships defined within a DataSet . This, together with the ability to use other customization capabilities of the control, makes it well worth using when displaying data. We also took a quick look at how easy it is to actually update the original data source with any new data.

Displaying data in a grid is not always appropriate, so we've discussed simple data binding in the chapter also, whereby a column of data is linked to a single control in the user interface. The binding capabilities of .NET make this type of user interface very easy to support, as it's generally just a case of binding a control to a column and letting .NET get on with the rest.

We explored the integration of Visual Studio .NET and XML schemas, with a section on XSD and automatic code generation, and a hand-crafted example to show a minimal implementation. Using an XSD schema to generate DataSet code can save a great deal of typing, as the tool takes care of all of the underlying code.

Hopefully, these last two chapters have given you an appetite for the other XML facilities of .NET, which are tackled further in the next chapter.

  


Professional C#. 2nd Edition
Performance Consulting: A Practical Guide for HR and Learning Professionals
ISBN: 1576754359
EAN: 2147483647
Year: 2002
Pages: 244

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net