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. About Datagrid and xml data(urgent)

About Datagrid and xml data(urgent)

Scheduled Pinned Locked Moved Visual Basic
xmlhelp
3 Posts 2 Posters 0 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.
  • W Offline
    W Offline
    Wlink
    wrote on last edited by
    #1

    I display the xml file data in datagrid control and i also add the extra column in the datagrid control now i want to add the command button in the newly added column cell.please help me.It is urgent for me

    C 1 Reply Last reply
    0
    • W Wlink

      I display the xml file data in datagrid control and i also add the extra column in the datagrid control now i want to add the command button in the newly added column cell.please help me.It is urgent for me

      C Offline
      C Offline
      Ch_Shahzad iqbal
      wrote on last edited by
      #2

      Dim ds As DataSet = New DataSet ds.ReadXml("FileName Here") Dim btn As New DataGridViewButtonColumn btn.Text = "Add New" DataGridView1.column.add(btn) BEST LUCK

      W 1 Reply Last reply
      0
      • C Ch_Shahzad iqbal

        Dim ds As DataSet = New DataSet ds.ReadXml("FileName Here") Dim btn As New DataGridViewButtonColumn btn.Text = "Add New" DataGridView1.column.add(btn) BEST LUCK

        W Offline
        W Offline
        Wlink
        wrote on last edited by
        #3

        dear sir This is my code.I can add the check box by using this code Now i need the Command button.Your code doesnot work.Please hope for kind coperation. 'btn1_click() 'Dim filePath As String 'filePath = "D:\authors.xml" 'dsAuthors.ReadXml(filePath) 'With dg ' .DataSource = dsAuthors ' .DataMember = "Authors" ' .CaptionText = .DataMember ' Dim dtcCheck As New DataColumn("New Column") ' dtcCheck.DataType = System.Type.GetType("System.Boolean") ' dtcCheck.DefaultValue = False ' dsAuthors.Tables(0).Columns.Add(dtcCheck) 'End With end sub

        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