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
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; }
{
//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
Hai Danko Valkov,
Thank u very much for your response. By the By, i am not looking for, what you have answered..
I am Talking about Selection Not Activation.
IN Windows default DataGrid, there was an Property called "SelectionMode" Which includes RowHeaderSElect, CellSelect, FullRowselect, FullColumnSelect etc..
I want the above same option in Ultragrid, where i am working in.. ?
PLease help me Out
With Regards,
Janani.s