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
485
Related to Grid
posted

  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.

Parents
  • 469350
    Offline posted

    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.

     

     

Reply Children