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
40
How to Edit a Selected Row in Ultra Grid.
posted

Here is my requirement.

I have a Modify button, when we select a row in gird and cliks on modify , i want that selected row in edit mode. how can i achieve that.

I am trying this options, no luck

 

this.uGrid.ActiveRow.Activation = Activation.AllowEdit;

this.uGrid.ActiveCell.Activation = Activation.AllowEdit;

  • 1570
    Suggested Answer
    Offline posted

     

     

     

     

     

    Varmajp-

    The following options could be placed in your click event:

    //Put Cell In Edit Mode
    this
    .dg.DisplayLayout.Bands[0].Columns[18].CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.Edit;

     

     

     

    //Put Cell In Edit Mode & Select Text
    this
    .dg.DisplayLayout.Bands[0].Columns[18].CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;

     

     

     

    If you wanted to turn it back off (after editing) you could do the following

    //Turn Back To Row Select
    this
    .dg.DisplayLayout.Bands[0].Columns[18].CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect;

    -Ian