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,
In my previous post I have provided the one following overrides of the CellClickAction which would be set in the IntializeLayout event of the UltraGrid:
e.Layout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.CellSelect; e.Layout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect; e.Layout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.Edit; e.Layout.Override.SelectTypeCell = Infragistics.Win.UltraWinGrid.SelectType.Extended; e.Layout.Override.SelectTypeCol = Infragistics.Win.UltraWinGrid.SelectType.Extended; e.Layout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Extended;
Please let me know if you have any other questions.
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
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