Extra properties in DataTable returned by web service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts

  • Nicholas Paldino [.NET/C# MVP]
    Guest replied
    Re: Extra properties in DataTable returned by web service

    szwejk,

    No, you can't. The DataSet doesn't have the hooks to insert this extra
    data, and it would affect the schema ^and^ the XML that is output by the
    DataSet.

    However, you can transform the XML that the DataSet produces and append
    the extra data you need (in the schema, and in the XML instance).


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "szwejk" <szwejkc@gmail. comwrote in message
    news:0133c251-4dec-44e1-9334-4721b4d3524f@i7 g2000prf.google groups.com...
    I know that DataTable doesn't have properties that I need. But I'd
    like to ask is there any simple way (e.g. like override DataTable,
    DataColum or prepere special types in data columns or any other ideas)
    when web service can retrun additional informations in schema about
    data in every column?

    --
    szwejk


    On 12 Lut, 04:37, "Nicholas Paldino [.NET/C# MVP]"
    <m...@spam.guar d.caspershouse. comwrote:
    szwejk,
    >
    I'm not sure what you mean, as the DataTable doesn't have any color or
    mask properties.
    >
    Whatever this information is you are trying to return, you can create a
    different type that includes the information from the DataTable as well as
    the extra information you have which isn't part of the DataTable.
    >

    Leave a comment:


  • szwejk
    Guest replied
    Re: Extra properties in DataTable returned by web service

    I know that DataTable doesn't have properties that I need. But I'd
    like to ask is there any simple way (e.g. like override DataTable,
    DataColum or prepere special types in data columns or any other ideas)
    when web service can retrun additional informations in schema about
    data in every column?

    --
    szwejk


    On 12 Lut, 04:37, "Nicholas Paldino [.NET/C# MVP]"
    <m...@spam.guar d.caspershouse. comwrote:
    szwejk,
    >
        I'm not sure what you mean, as the DataTable doesn't have any color or
    mask properties.
    >
        Whatever this information is you are trying to return, you can create a
    different type that includes the information from the DataTable as well as
    the extra information you have which isn't part of the DataTable.
    >

    Leave a comment:


  • Nicholas Paldino [.NET/C# MVP]
    Guest replied
    Re: Extra properties in DataTable returned by web service

    szwejk,

    I'm not sure what you mean, as the DataTable doesn't have any color or
    mask properties.

    Whatever this information is you are trying to return, you can create a
    different type that includes the information from the DataTable as well as
    the extra information you have which isn't part of the DataTable.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "szwejk" <szwejkc@gmail. comwrote in message
    news:c72352fc-c701-48bf-97b8-dad6c53c6155@i1 2g2000prf.googl egroups.com...
    Hi!
    >
    I want to return DataTable from web service method. This method
    generate xml with schema and data. Is there any way to retrun more
    informations about columns? If I want to get maxLength there is no
    problem because DataColum has property MaxLength, but I need more
    (e.g. color, mask..) Thx for help!
    >
    --
    Szwejk

    Leave a comment:


  • szwejk
    Guest started a topic Extra properties in DataTable returned by web service

    Extra properties in DataTable returned by web service

    Hi!

    I want to return DataTable from web service method. This method
    generate xml with schema and data. Is there any way to retrun more
    informations about columns? If I want to get maxLength there is no
    problem because DataColum has property MaxLength, but I need more
    (e.g. color, mask..) Thx for help!

    --
    Szwejk
Working...