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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:57:18+00:00 2026-05-30T09:57:18+00:00

I have a gridview where the user will be able to enter values and

  • 0

I have a gridview where the user will be able to enter values and save the changes made. I want to show the user the changes he made so far in the grid and traverse him through the changes on next and previous button clicks like how we do in TFS and other compare tools.

Can you please suggest me how can I achieve this compare functionality in c#?
Are there any open source dll’s available to do the comparison and traverse through the changes. Any help will be appreciated..Thanks.

  • 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-30T09:57:19+00:00Added an answer on May 30, 2026 at 9:57 am

    I don’t think there’s a need for any open source. You’re the owner of your data, so I assume you know how to compare rows yourself.

    All you have left to do is to put the index numbers of all the modified rows into an array/list, and by the position in this list you can tell which row was modified.

    This looks better in code:

    class ModifiedRows
    {
        int m_position = 0;
        List<int> m_modifiedRowNumbersList;
        public ModifiedRows(List<int> modifiedRowNumbersList)
        {
            m_modifiedRowNumbersList = modifiedRowNumbersList;
        }
    
        public bool CanMoveToNextIndex { get { return m_position < m_modifiedRowNumbersList.Count; } }
        public bool CanMoveToPrevIndex { get { return m_position > 0; } }
    
        public void MoveToNextIndex()
        {
            if ( CanMoveToNextIndex )
            {
                m_position++;
            }
        }
    
        public void MoveToPrevIndex()
        {
            if ( CanMoveToPrevIndex )
            {
                m_position--;
            }
        }
    
        public int CurrentModifiedRowIndex
        {
            get
            {
                return m_modifiedRowNumbersList[m_position];
            }
        }
    }
    
    • You can place Prev/Next buttons on your form and handle their Click event to call MoveToNextIndex() / MoveToPrevIndex().

    • Assuming you’re talking about a DataGridView, you can set the CurrentCell property according to the, which you can get from ModifiedRows.CurrentModifiedRowIndex.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have a gridview control which will show X amount of rows. I want to
I have a gridview that contains data. I want the user to be able
I have created a gridview with a column of checkboxes. I want the user
I have a gridview and when a user selects a row I want to
I have a GridView inside of a User Control populated from a List of
I have a gridview and I need to sort its elements when the user
In my child user control I have a gridview with an OnRowCommand eventhandler that
I have a user control that contains a GridView. The GridView has both a
I have a ASP.NET GridView that uses template columns and user controls to allow
I have an ASP.NET gridview I want to manipulate using JavaScript/JQuery. The problem I

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.