Hello,
Is it possible to display an existing xml file in a datagrid?
Thanks 11 1501
Ish,
That depends of that XML file is a dataset (Or has the same format, that is
easy to see, when there are attributes it is not a normal dataset has only
elements).
Cor
Ish,
That depends of that XML file is a dataset (Or has the same format, that is
easy to see, when there are attributes it is not a normal dataset has only
elements).
Cor
Hi,
Try something like this.
Dim ds As New DataSet
ds.ReadXml("C:\temp.xml")
DataGrid1.DataSource = ds.Tables(0)
Ken
-----------------------------
"Ish2000" <Is*****@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
Hello,
Is it possible to display an existing xml file in a datagrid?
Thanks
Hi,
Try something like this.
Dim ds As New DataSet
ds.ReadXml("C:\temp.xml")
DataGrid1.DataSource = ds.Tables(0)
Ken
-----------------------------
"Ish2000" <Is*****@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
Hello,
Is it possible to display an existing xml file in a datagrid?
Thanks
Funny sentence, it can be readed as I not intended. That depends of that XML file is a dataset (Or has the same format, that is easy to see, when there are attributes it is not a normal dataset has only elements).
when there are attributes it is not. A normal dataset has only elements.
Funny sentence, it can be readed as I not intended. That depends of that XML file is a dataset (Or has the same format, that is easy to see, when there are attributes it is not a normal dataset has only elements).
when there are attributes it is not. A normal dataset has only elements.
Hi Cor,
I really don't get what you are trying to say. I am very new to the .Net
environment.
Ish....
"Cor Ligthert" wrote: Ish,
That depends of that XML file is a dataset (Or has the same format, that is easy to see, when there are attributes it is not a normal dataset has only elements).
Cor
Hi Ken,
Thanks for you prompt reply, how would i display the same xml file is a
textbox?
Thanks....
"Ken Tucker [MVP]" wrote: Hi,
Try something like this.
Dim ds As New DataSet
ds.ReadXml("C:\temp.xml")
DataGrid1.DataSource = ds.Tables(0) Ken
-----------------------------
"Ish2000" <Is*****@discussions.microsoft.com> wrote in message news:97**********************************@microsof t.com... Hello,
Is it possible to display an existing xml file in a datagrid?
Thanks
Ish,
Telling that a file is a xml file is says not much, the way that it is used
tells more.
One of the formats is the dataset. When the code from Ken shows your XML
file in a datagrid than it is a dataset.
Than you can use databinding.
textbox1.DataBindings.Add(New Binding("Text", dataset1.Tables(0),
"LastName"))
I hope this helps?
Cor
Hi,
Try something like this.
With TextBox1
..Text = ds.GetXml
..Multiline = True
..ScrollBars = ScrollBars.Both
..Height = 200
End With
Ken
--------------------------------
"Ish2000" <Is*****@discussions.microsoft.com> wrote in message
news:16**********************************@microsof t.com...
Hi Ken,
Thanks for you prompt reply, how would i display the same xml file is a
textbox?
Thanks....
"Ken Tucker [MVP]" wrote: Hi,
Try something like this.
Dim ds As New DataSet
ds.ReadXml("C:\temp.xml")
DataGrid1.DataSource = ds.Tables(0) Ken
-----------------------------
"Ish2000" <Is*****@discussions.microsoft.com> wrote in message news:97**********************************@microsof t.com... Hello,
Is it possible to display an existing xml file in a datagrid?
Thanks
Hi Ken,
Thanks, that worked.........
Regards,
Ish.....
"Ken Tucker [MVP]" wrote: Hi,
Try something like this.
With TextBox1
..Text = ds.GetXml
..Multiline = True
..ScrollBars = ScrollBars.Both
..Height = 200
End With Ken
--------------------------------
"Ish2000" <Is*****@discussions.microsoft.com> wrote in message news:16**********************************@microsof t.com... Hi Ken,
Thanks for you prompt reply, how would i display the same xml file is a textbox?
Thanks....
"Ken Tucker [MVP]" wrote:
Hi,
Try something like this.
Dim ds As New DataSet
ds.ReadXml("C:\temp.xml")
DataGrid1.DataSource = ds.Tables(0) Ken
-----------------------------
"Ish2000" <Is*****@discussions.microsoft.com> wrote in message news:97**********************************@microsof t.com... Hello,
Is it possible to display an existing xml file in a datagrid?
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Andrew S. Giles |
last post by:
Hello,
I am importing a flat text file, and putting it into a datagrid for display
on a form.
Currently the users have their dates and times seperated. I have two
fields, therefore in the...
|
by: Paul Wilson |
last post by:
How do i display the list of files in a particular directory (only the file
name), in a grid or similar control, with hyperlinks to be able to download
those files.
Regards,
Paul
|
by: bep |
last post by:
Hello
What is the best way to sort an XmlDocument for display in a DataGrig?
I can use Xpath with an XpathExpression, and a XpathNavigator. But this
XpathNavigator object is of no use to me, I...
|
by: The Colonel |
last post by:
I have a database of our company's HTML email templates - name,
subject, etc. Well, some are for HTML emails, and the template_text
column contains HTML. When I display in a datagrid, it REALLY...
|
by: Leszek |
last post by:
I wrote an aspx page.
It shows datagrid with values:
server | parameter
---------------------
server1 | parameter1
server1 | parameter2
server1 | parameter3
server1 | parameter4
server1...
|
by: DC Gringo |
last post by:
I am trying to output simply DataGrid of a coutry listing on a web form via
a business object and XML web service...I receive no errors but no table
HTML either. (I know the service and business...
|
by: hazz |
last post by:
With this code, the config file(listed below) opens initially into the
datagrid display with only a plus sign '+'.
On clicking that, it becomes expanded to;
-
appsettings
add
When I click on...
|
by: harry |
last post by:
Hi all,
I have a datagrid (language C#) populated using a stored procedure. I
want one of the column to display complete name instead of
abbreviation. Can I change the display dynamically in the...
|
by: pozze |
last post by:
Hi,
I need to display images and other record information retrieved from an SQL 2005 database in a datagrid on a web page. I'm coding in VB .net I have recently changed over from VB ASP and i'm...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |