Here is the code in question:

filePath = "..\authors.xml"
dsAuthors.ReadXml(filePath)

With DataGrid1
      .DataSource = dsAuthors
      .DataMember = "authors"
End With

However, it will not allow me to reference .DataMember, it keeps popping up with the error text "'DataMember' is not a member of 'System.Windows.Forms.DataGrid'". What can I do to resolve this error? Or how else can I read into the DataGrid?

Note: I have the most recent Framework installed with Service Pack 1

Error was fixed, .datamember does not exist within a datagridview object. Had to use a populated datatable as the source instead.

@theMediator, please what did you mean because I have the same problem with the same code so how did you correct it

How about the technique used in this post?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.