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