0

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

Edited by theMediator: n/a

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by thines01
0

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

0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.