Re: pb with adding columns to a datatable

Tech-Archive recommends: Fix windows errors by optimizing your registry



Sam,

I would change it in this typed in this message so watch typos..

\\\
Dim dt As New DataTable
dt.Columns.Add("FieldName", GetType(System.String))
dt.Columns.Add("EntryInfo", GetType(System.String))
dt.loaddatarow(new Object() {txtFieldName.Text,txtEntryInfo.Text},true)
///

A lot shorter and the rowstate is direct set to unchanged in this case
(otherwise false).

Cor


.



Relevant Pages

  • Re: Expression
    ... Dim dt As New DataTable ... it is telling me that the conversion does not go ... Cor ... Prev by Date: ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Brakepoints not working on my application.
    ... This question mark will be placed if you try to set the breakpoint on ... something as a dim. ... Cor ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: GUID
    ... Dim a As String = ... Cor ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Then is Optional?!?
    ... This is one of my wishes, together with making that senseless 'Dim' optional ... Cor ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Cloning Datasets but also filtering
    ... However watch typos or what so ever. ... DataView dv = new DataView; ... Cor ... Prev by Date: ...
    (microsoft.public.dotnet.framework.adonet)