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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:45:54+00:00 2026-06-17T22:45:54+00:00

I have buttons in xtragrid cell . i want to get row index when

  • 0

I have buttons in xtragrid cell . i want to get row index when i clicked to repository button item. How can i get cell info or index..

I wanna show cell info at anotherp page which respository button clicked in row cell..

Can you help me ?
Thanks for advice..

  • 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-06-17T22:45:55+00:00Added an answer on June 17, 2026 at 10:45 pm

    To get the information about Grid HitInfo check the Hit Information Overview and Samples of Using Hit Information documentation:

    private void gridView1_MouseDown(object sender, MouseEventArgs e) {
        // obtaining hit info 
        GridHitInfo hitInfo = gridView1.CalcHitInfo(new Point(e.X, e.Y));
        if (((e.Button & MouseButtons.Right) != 0) && (hitInfo.InRow)  && 
            (!gridView1.IsGroupRow(hitInfo.RowHandle))) {
            // switching focus 
            gridView1.FocusedRowHandle = hitInfo.RowHandle;
            // showing the custom context menu 
    
            ViewMenu menu = new ViewMenu(gridView1);
            DXMenuItem menuItem = new DXMenuItem("DeleteRow", 
              new EventHandler(DeleteFocusedRow));
            menuItem.Tag = gridView1;
            menu.Items.Add(menuItem);
            menu.Show(hitInfo.HitPoint);
        }        
    }
    

    Check this:

    private void repositoryItemButtonEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
    {
        myGridView.DeleteRow(myGridView.FocusedRowHandle);  /// you can get focusedRowHandle here
    }
    

    Reference:
    Winforms XtraGrid Delete Row Button
    Delete button on each row of grid – how do we prevent the user from typing text in the new column with the delete button

    Edit:
    Refere this Devexpres thread: Cannot get the rowhandle to delete a row using RepositoryItemButtonEdit

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

Sidebar

Related Questions

I have Buttons attached to elements on the modules entrypoint html page using RootPanel.get(foo).add(button)
I have an integer ArrayList and several buttons. Each button corresponds to an index
I have buttons with a class named nav, when a button is clicked the
I have buttons on a page that look like: <p> <a href=view.php> <input type=button
I want to have buttons that kind of act like tabs - they switch
Multiple sites have buttons where you can tweet, digg, etc. On this page you'll
I have five buttons on one form that when clicked enables a bool each
I have two buttons, which the user can click and will open a FileDiagloag
I want to have buttons that are switching from one color to another. Eg.
I am have buttons like this: <button type=button class=img img_button_bla onclick=...>Bla!</button> The img class

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.