Re: DataGrid Hierarchical Data view display in Windows Form



The quickest (although I loathe these things) way to do this is to define
your dataset in an XSD and generate a Typed Dataset for it. A TDS attempts
to represent a dataset as a single object, as if the TDS was deserialized
into a true data entity. One problem (at least pre-Nullable): because they
just encapsulate what the database returns, you have to make a lot of calls
like:
System.Diagnostics.Debug.WriteLine("Here's my value: " +
myDataEntity.IsMyValueNull() ? "null" : myDataEntity.MyValue);

or else get_MyValue will attempt to cast a DBNull as the property type of
MyValue, leading to an InvalidCastException.



.



Relevant Pages

  • Re: Changing column order in typed dataset
    ... David R ... How to use TDS in the .net programming then? ... NET 2.0 for Windows forms vs ASP.NET. ... A strongly typed dataset is simple a class for yourself (your ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Changing column order in typed dataset
    ... TDS, as I use it, is short for Typed Data Set. ... David R ... A strongly typed dataset is simple a class for yourself (your ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Changing column order in typed dataset
    ... Excuse me, what is TDS? ... datagridview to false, and add the columns manually, in the order I ... NET 2.0 for Windows forms vs ASP.NET. ... A strongly typed dataset is simple a class for yourself (your ...
    (microsoft.public.dotnet.framework.adonet)

Loading