Re: How to get a datetime for Dataview



In addition to spelling 'DateTime' correctly in the declaration, you didn't
specify which row in the dataview you want. You have to index into it by
row, then by column. Otherwise if you have 10 rows, which 'Birth' value do
you expect to get?

"ad" <ad@xxxxxxxxxxxxxxx> wrote in message
news:uQCOX4qkFHA.3692@xxxxxxxxxxxxxxxxxxxxxxx
>I have a DataView, say myDV, it contain a DataTime field, "Birth".
> I want to get the Birth Value from the DataView:
>
> DateTiem dBirth= (DateTime)myDV["Birth"];
>
> But the complier throw an error.
>
> How can I get datetime for Dataview?
>
>


.



Relevant Pages

  • Re: How to get a datetime for Dataview
    ... >I have a DataView, say myDV, it contain a DataTime field, "Birth". ... Try spelling "DateTime" correctly... ...
    (microsoft.public.dotnet.languages.csharp)
  • Like operator is not working with Dataview.RowFilter
    ... But if data type is "integer, datetime or boolean" its throws ... Dim dv As New DataView ...
    (microsoft.public.dotnet.languages.vb)
  • ike operator with Dataview.RowFilter nor workin
    ... But if data type is "integer, datetime or boolean" its throws ... Dim dv As New DataView ...
    (microsoft.public.dotnet.languages.vb)
  • DataTable + Datum
    ... in welchem eine Spalte als DateTime vorliegt ... Wenn ich jetzt ein DataView erstelle und nur den 27.12.2008 herausfiltern will mit ... DataView dv = new DataView; ...
    (microsoft.public.de.sqlserver)
  • Re: Only Bind a Subset of records
    ... when/if the user clicks on a grid footer item ... where the paging is set up, you can simply specify a range of values in the ... RowFilter property and then rebind the grid to the dataview. ... event on the header and then sort on that column's index in the dataview). ...
    (microsoft.public.dotnet.framework.adonet)

Loading