Fig 1
Fig 1questions.
1.How can i make all the rows in the grid to be selected by clicking on the upper left header (Intersect
ion of row and column header).
2.How can i place the icons on the cells as in HolidayList column.(When user clicks on the icon i
need to show the calender at the right body page).
Figure 2
1. How can i have Multiline column header asin Figure 2.
2.Is there any replacement for Microsoft Property Grid in Infragistics component.
vinuthak said: 1.How can i make all the rows in the grid to be selected by clicking on the upper left header (Intersect ion of row and column header).
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.SeparateElement; } private void ultraGrid1_MouseDown(object sender, MouseEventArgs e) { UltraGrid grid = (UltraGrid)sender; RowSelectorHeaderUIElement rowSelectorHeaderUIElement = grid.DisplayLayout.UIElement.LastElementEntered as RowSelectorHeaderUIElement; if (rowSelectorHeaderUIElement != null) { this.ultraGrid1.Selected.Rows.AddRange(this.ultraGrid1.Rows.GetFilteredInNonGroupByRows()); } }
You might also want to look at this KB article which describes different ways of selecting all rows in the grid.
HOWTO:What is the best way to programmatically select all rows in the grid?
vinuthak said: 2.How can i place the icons on the cells as in HolidayList column.(When user clicks on the icon i need to show the calender at the right body page).
You could do this in a number of ways. I'd probably use an UltraTextEditor with a button in the ButtonsRight collection and attach it to the column via the EditorControl property.
vinuthak said: 1. How can i have Multiline column header asin Figure 2.
Set the ColHeaderLines property.
vinuthak said:2.Is there any replacement for Microsoft Property Grid in Infragistics component.
The closest thing would be the UltraWinTree. There's a sample included with NetAdvantage that demonstrates using the tree as a property grid.
I added UltraTextEditor with button in the ButtonRightCollection and assigned it as EditorControl to column in the grid.still i am not able to see that in the grid yet. what could be the problem
Is the grid cell editable? If it's readonly or disabled, then the button will not be able to display.
Also, try setting the ButtonDisplayStyle on the grid column to Always.