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 6780311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:29:27+00:00 2026-05-26T16:29:27+00:00

Hi I am converting a old vb.net program to WPF and am having trouble.

  • 0

Hi I am converting a old vb.net program to WPF and am having trouble. I imported some data to a datatable and dumped that into a datagrid. I now need to go row by row and extract the cell values and use them to update the appropriate database record.

This was working in my old program using:

For i = 0 To DataGridView1.Rows.Count - 1

cellvalue = Me.datagrid.Items(i).Cells(8).Value).ToString

(insert to database) etc

next

I been searching around and apparently its not as simple in WPF. But all the working examples i can find are all in C# which I am not that famillar with and cant seem to convert to work. So if someone can provide me some code (in vb) that would be much appreciated.

  • 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-05-26T16:29:28+00:00Added an answer on May 26, 2026 at 4:29 pm

    If you’ve already got a DataTable that contains your data, it is pretty easy to work with that:

    Dim dt As New System.Data.DataTable
    '...Load your data into DataTable
    
    For Each rw As System.Data.DataRow In dt.Rows
       cellValue = rw(8).ToString
       '...insert to database
    Next
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having some trouble converting an old project from VS6 to VS2005. At
I was converting some .NET-3.5-based projects to .NET Framework 4.0 and ran into trouble
Converting an old program into an ASP.NET c# site. I have a table full
I am converting an old html based website to ASP.NET, so that we can
I have some old apps written in PHP that I'm thinking of converting to
I'm working on converting an old C program (currently run on UNIX) into our
I am converting an old script from ASP to ASP.NET and would like some
Currently converting an old asp.net web forms page into a asp.net mvc version, and
I'm just trying to get more into stl semantics, and converting old loops over
I'm converting an old app that records folder sizes on a daily basis. The

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.