Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. data view related query

data view related query

Scheduled Pinned Locked Moved Visual Basic
questioncsharpdatabase
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anz Ananz
    wrote on last edited by
    #1

    how do i find a record in a multi column table data view in vb.net and how can i move in that view....like move next, move previous etc. as it could be done in the recordset of vb

    P 1 Reply Last reply
    0
    • A Anz Ananz

      how do i find a record in a multi column table data view in vb.net and how can i move in that view....like move next, move previous etc. as it could be done in the recordset of vb

      P Offline
      P Offline
      Pankaj Jain
      wrote on last edited by
      #2

      Hi Anz, Check it http://www.codeproject.com/vb/net/SQLEditor.asp[^] It can Help u See in article 'If the table contains a primary key, use that to find the record. For i As Integer = dca.GetLowerBound(0) To dca.GetUpperBound(0) dv.RowFilter = "COLUMN_NAME = '" & dca(i).ColumnName & "'" sSQLDataType = dv(0)("TYPE_NAME").ToString() If sSQLDataType.Equals("text") Or _ sSQLDataType.Equals("ntext") Or _ sSQLDataType.Equals("image") Then sTmp = "[" + dca(i).ColumnName + "] LIKE @" + _ RemoveIllegalChars(dca(i).ColumnName, _ m_RemoveChars) Else sTmp = "[" + dca(i).ColumnName + "] = @" + _ RemoveIllegalChars(dca(i).ColumnName, _ m_RemoveChars) End If If dca.GetLength(0) > 1 Then sSQL = sSQL + "(" + sTmp + ")" Else sSQL = sSQL + sTmp End If If i <> dca.GetUpperBound(0) Then sSQL = sSQL + " AND " Next

      Pankaj Jain

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups