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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:49:25+00:00 2026-05-28T20:49:25+00:00

I have 2 DataGridViews and I transfer data between them. My question is: How

  • 0

I have 2 DataGridViews and I transfer data between them. My question is: How can i move the index of datagridview1 row to next one after the data has been transfered.

Code:

int index = 0;
int index1 = 0;
for (int i = 0; i < produseDataGridView.CurrentCell.RowIndex; i++)
     index = produseDataGridView.Rows[i].Cells["dprodus"].RowIndex;
for (int j = 0; j < produse_magazinDataGridView.CurrentRow.Index; j++)
     index1 = produse_magazinDataGridView.Rows[j].Cells["produs"].RowIndex;
     produseDataGridView.CurrentCell = produseDataGridView.Rows[index + 1].Cells[0];
     produse_magazinDataGridView.CurrentCell = produse_magazinDataGridView.Rows[index1 + 1].Cells[0];
  • 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-28T20:49:26+00:00Added an answer on May 28, 2026 at 8:49 pm

    I’m not sure what you mean by “how can i move the index of datagridview1 row to next”.

    Index is just a integer in your code. If you meant to write “how to select the next row” then its:

    produseDataGridView.Rows(Index + 1).Selected = True;
    produse_magazinDataGridView.Rows(Index1 + 1).Selected = True;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have c# DataGridViews modified so that I can drag and drop rows between
I have two DataGridViews, one with data bind by a BindingSource and the second
I have some DataGridViews each displaying one DataTable from a DataSet with multiple DataTables.
I have four datagridviews and one text box and i want to display a
I have two DataGridView controls, with three buttons in between them vertically, in a
I have a problem when I want to transfer data from Excel to dataGridView
I have 2 DataGridViews (DGVs). theChipDGV will contain data like this (except with many
I have 4 datagridviews. based on user's selection I'll bring on of them to
I have a datagridview in form 1 which contains unbound data. How can I
I have a DataGridView with one DataGridViewComboBoxColumn in my WinForms application. I need to

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.