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

  • Home
  • SEARCH
  • 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 6122515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:54:30+00:00 2026-05-23T15:54:30+00:00

EDIT: The problem has something to do with when I am invoking the method.

  • 0

EDIT: The problem has something to do with when I am invoking the method. If I wait for the form to be displayed, and invoke the method from a menu on the form itself, it works. But if I set the row to be displayed before the form has finished rendering, it doesn’t work. Does the XtraGrid raise an event when it has finished rendering?

I am not having any success with making a specific row in the grid visible using its row handle. I’ve tried both the MakeRowVisible method of the GridView and also simply setting the ColumnView’s FocusedRowHandle property, both of which are supposed to bring the specified row into view.

Note: when focusing a row using the ColumnView.FocusedRowHandle
property, the View automatically
makes the specified row visible on
screen. The MakeRowVisible method is
used for this purpose. So, you don’t
have to use the MakeRowVisible method
if you need to focus the target row.
Simply assign the desired row handle
to the ColumnView.FocusedRowHandle
property.
http://documentation.devexpress.com/#WindowsForms/DevExpressXtraGridViewsGridGridView_MakeRowVisibletopic

I must be missing something basic.
Thanks for the help.

 public void SetVisibleRow(int customerid)
        {

         DevExpress.XtraGrid.Views.Base.ColumnView  vw;
         vw = (DevExpress.XtraGrid.Views.Base.ColumnView) MyGrid.DefaultView;

          for ( int i = 0; i < vw.DataRowCount;  i++)
            {
                 if ((int)vw.GetRowCellValue(i, "custid") == customerid)      
                  {
                    // DevExpress.XtraGrid.Views.Grid.GridView gv;
                    // gv =  (DevExpress.XtraGrid.Views.Grid.GridView) MyGrid.DefaultView;
                    // gv.MakeRowVisible(i,false);

                    vw.FocusedRowHandle = i;
                    break;
                  }
            }

        }
  • 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-23T15:54:31+00:00Added an answer on May 23, 2026 at 3:54 pm

    If you are calling your SetVisibleRow method in the form’s OnLoad event, make sure to call the grid control’s ForceInitialize method first.

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

Sidebar

Related Questions

EDIT: This problem has been solved. See below. Hey all. I'm building an iPhone
Edit : The bug that caused this problem has been fixed. The @version tag
Edit: I fixed the problem by just starting from scratch. Sorry to waste y'alls
EDIT: So apparently I was doing everything right, but I had a different problem
EDIT: Seems i didnt use an 'id' on my textarea, so that problem has
I am sure this has something to do with IIS but I can't figure
Edit: The code below has been modified to work as the problem has been
EDIT: Problem wasn't related to the question. It was indeed something wrong with my
[edit]: Figured out where it goes wrong. It has something to do with my
[Edit: This problem applies only to 32-bit systems. If your computer, your OS and

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.