dataView of a single columns ???

J

jobs

I have a asp.net gridview that I want to send a single column to a
stored procedure as an XML string ..

the code produces an xml document with all the columns.

I only want to send a column called "RatePlanId"

Dim View As DataView
View =
CType(RateGridSource.Select(DataSourceSelectArguments.Empty), DataView)
Dim RatePlans As DataTable = View.ToTable()
Dim ds As New DataSet
ds.Tables.Add(RatePlans)
'ds.WriteXml("RatePlan")
Dim xdoc As New XmlDocument
xdoc.LoadXml(ds.GetXml())
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top