Results 1 to 12 of 12

Thread: organizing and removing unwanted numbers from datagridview

Threaded View

  1. #3

    Thread Starter
    New Member
    Join Date
    May 2015
    Posts
    12

    Re: organizing and removing unwanted numbers from datagridview

    Quote Originally Posted by dday9 View Post
    Try this:
    Code:
    DataGridView2.Rows.Add(subitem("leftlabelcells_value"), Convert.ToInt32(subitem("hideextra_number").Replace(" ", String.Empty).Replace("[", String.Empty).Replace("]", String.Empty).Split(","c)(0)), Convert.ToInt32(subitem("rightpositioncells_number").Replace(" ", String.Empty).Replace("[", String.Empty).Replace("]", String.Empty.Split(","c)(0)))
    Basically for the last two columns I replace all spaces, open brackets, and close brackets with an empty String and then I split the value by a comma and get the first item from the split.

    Edit - I also convert the values returned from the process described to an Integer which will round all values down and remove the decimal place.
    thank you for your input dday, but unfortunetly i get a an error ; Too many arguments to 'Public Overloads Sub Replace(value As JToken)'.
    Attached Images Attached Images  
    Last edited by hyperbell; Mar 25th, 2016 at 12:54 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width