Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7898115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:20:48+00:00 2026-06-03T08:20:48+00:00

I have a dataset, How can I use the below code to bind the

  • 0

I have a dataset, How can I use the below code to bind the radchart by using the below Original code?

Partial Public Class Chart_Examples_Skinning_Bars_DefaultCS
    Inherits System.Web.UI.Page
    Protected Sub Page_Load(sender As Object, e As EventArgs)
        If Not Page.IsPostBack Then
            Dim series As New ChartSeries()
            series.Type = ChartSeriesType.Bar
            series.DataXColumn = "XValue"
            series.DataYColumn = "YValue"

            CapacityRadChart.Series.Add(series)

            CapacityRadChart.DataSource = Me.GetDataSource()
            CapacityRadChart.DataBind()
        End If
    End Sub

    Private Function GetDataSource() As List(Of Class1)
        Dim r As New Random()
        Dim source As List(Of Class1) = New List(Of Class1)

        For i As Integer = 0 To 399
            Dim item As New Class1()

            item.XValue = i
            item.YValue = r.[Next](0, 100)

            source.Add(item)
        Next

        Return source
    End Function

End Class

I’m doing it in this way, But it is throwing the following error:

the type of column with “COUNT” is not numeric”.

Please could you suggest appropriate code?

Dim dt As DataTable = ds.Tables.Item(0)
Dim dr As DataRow
Dim listdata As new List(Of Double)

Dim list As New List(Of DataRow)(dt.[select]())
    For Each dr  In dt.Rows            
            list.Add(dr.ToLis)
    Next

Dim series As New ChartSeries()
series.Type = ChartSeriesType.Bar
    series.DataXColumn  = "CapacityDelay"
    series.DataYColumn = "COUNT"

    BaselineRadChart.Clear()
    BaselineRadChart.Series.Add(series)

    BaselineRadChart.DataSource = list
    BaselineRadChart.DataBind()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:20:49+00:00Added an answer on June 3, 2026 at 8:20 am

    How do you create a columns in ds.Tables.Item(0)? Do you bind the DataTable directly from database or create the DataTable manually?

    If you create it manually, then you may need to declare the DataType for the DataColumn

    Dim dt As DataTable
    dt.Columns.Add("CapacityDelay", System.Type.GetType("System.String"))
    dt.Columns.Add("Count", System.Type.GetType("System.Int32"))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

let's say I have public delegate DataSet AutoCompleteDelegate( string filter, long rowOffset); can I
I have this code so I can grab the values ind the dataset before
Consider the code below (which has been simplified). I have a service class that
I have an ADO.NET disconnected DataSet. I don't need or can use an ADO.NET
I have big dataset (but the following is small one for example). I can
I have a doubt i use the following piece of code get data from
I have a dataset which I want to use as a parameter for my
Can someone enlighthen me with regards to Linq please? I have a dataset that
Hello I have the code below that for some reason is not working: I
I would like to bind the dynamically dataset to the rdlc. I can view

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.