Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
selection of highlighted row
posted

Hi,

I have a wingrid which displays datatable. It displays first row as highlighted in blue color. So if user press edit or delete button, then he should be able to use the highlighted row details. Right now user cannot edit row details, unless he clicks on the row..

How can I make the highlighted row as selected and active one. Thanks!! 

 

 

Parents
No Data
Reply
  • 45049
    posted

    snair01 said:
    I have a wingrid which displays datatable. It displays first row as highlighted in blue color. So if user press edit or delete button, then he should be able to use the highlighted row details. Right now user cannot edit row details, unless he clicks on the row..

    How can I make the highlighted row as selected and active one. Thanks!!

    The highlighted row already is "active" - that's why it's highlighted.  An active row doesn't take keyboard input for entering data; that'd be an active cell.

    If you're after the ability to have the first cell in the first row of the grid (for example) be put into edit mode as the form is shown, I suggest putting the following code in the Form_Shown event handler (written in C#):

    if (grid.Rows.Count > 0)
    {
        grid.Rows[0].Cells[0].Activate();
        grid.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode);
    }

Children