Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

Вопрос Wpf Datagrid RowHeader

Все ответы

  • 2 мая 2012 г. 4:47
     
     

    Hi Dee Choksi

     Try this MSDN Documentation ...

    http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.rowheaderstyle%28VS.100%29.aspx

    Hope this helps you..


    Harshad..... Always 4 U

  • 2 мая 2012 г. 8:34
     
     

    How would I get DataGridRowHeader from rowIndex.

    Not hundred percent sure what this means. What you have so far? Can you tell more about what you are doing and where you stuck in?

  • 2 мая 2012 г. 12:18
     
     

    I have this code to generate column header mouse over event handler.

     private void RhinoDataGrid_Loaded(object sender, RoutedEventArgs e)
            {
                DataGrid grid = (DataGrid)sender;
                int columnCount = grid.Columns.Count;
                int rowCount = grid.Items.Count;

                // code for column header mouse over, Selecting all cells of selected column header
                for (int i = 0; i < grid.Columns.Count; i++)
                {
                    DataGridColumnHeader columnHeader = DataGridHelper.GetColumnHeader(this, i);
                    if (columnHeader != null)
                    {
                        columnHeader.MouseEnter += new MouseEventHandler(ColumnHeader_MouseEnter);
                        columnHeader.MouseLeave += new MouseEventHandler(ColumnHeader_MouseLeave);
                    }
                }

    }

    Same way i would like to create Mouse Enter event handler for Row Header from coding.

    Thanks

    Dee