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
615
How to select only Cell, instead of selecting a entire row?
posted

I want to Select/Focus only particular cell,  I don't want to select the entire row.

What is the Property to change selection type in UltraGrid?

 

With regards,

janani.S

Parents
  • 20872
    Offline posted

    Hello Janani,

    You probably could use one of the following depends on your needs in the InitializeLayout event of the your UltraGrid.

    private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
    

     

     

    {

     

     

    //Setting an activation for a particular cell.

    e.Layout.Rows[Index].Cells["Column Key"].Activation = Infragistics.Win.UltraWinGrid.Activation.ActivateOnly;

     

     

     

    //Setting an mouse click action for the whole ultraGrid.

     e.Layout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.CellSelect;

     

     

     

    //Setting an activation for a particular column.

     e.Layout.Bands[Index].Columns["Key"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.ActivateOnly;

    }

     

     

     Please let me know if this is what you are looking for

Reply Children