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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:41:56+00:00 2026-05-23T10:41:56+00:00

I want to change the row selection from one row to next row and

  • 0

I want to change the row selection from one row to next row and the focus from one cell to the another cell on the the same column.

that is, 2nd row is selected in my datagrid and the focus is currently on the 2nd row 3rd column.

when i click a button on my screen, 3rd must get selected and the focus must be on the 3rd row 3rd column.

now if i type something then it must automatically reflect on the 3rd row 3rd column.

Thanks in advance!

  • 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-23T10:41:56+00:00Added an answer on May 23, 2026 at 10:41 am

    The following code will solve the issue.

                    _dgTemp.CommitEdit();
                    object SelectedItem = _dgTemp.SelectedItem;
                    DataGridRow _dgRow = DataGridHelper.GetRow(_dgTemp, _dgTemp.Items.IndexOf(SelectedItem));
                    DataGridCell _dgCell = DataGridHelper.GetCell(_dgTemp, _dgRow, _dgTemp.Columns.IndexOf(_dgTemp.CurrentColumn));
                    _dgCell.MoveFocus(new TraversalRequest(FocusNavigationDirection.Down));
                    _dgTemp.ScrollIntoView(_dgTemp.Items.IndexOf(_dgTemp.CurrentItem));
                    _dgTemp.UpdateLayout();
                    _dgTemp.SelectedIndex = _dgTemp.Items.IndexOf(_dgTemp.CurrentItem);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't want to use MVVM and want to change the selected row Foreground
I have html table like : Now I want to change row selection with
I want to change the position of the cursor to the first row but
I want all the views of Row in OnListItemClick() Actually I want to change
i have many div's with the same background image and i want change this
I have multiple threads that are processing rows from the same table that is
I have a Table with checkboxes. I want to change the selection of the
I have one select: select * from table1 where col1=10; and another select: select
i want change the content of a UITableView when i change a button, how
I want change following javascript code to jquery code, How is it? With done

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.