Source/NFX.WinForms/Controls/GridKit/Grid.cs
/// <summary>
/// Selects all rows.
/// The method will not select any rows if SelectAllRowsAllowed is false.
/// <returns>Number of rows selected</returns>
/// </summary>
Selects all rows.
The method will not select any rows if SelectAllRowsAllowed is false.
Number of rows selected
Selects all rows . The method will not select any rows if SelectAllRowsAllowed is false . Number of rows selected
public int SelectAllRows()
      {
        if (!SelectAllRowsAllowed)
          return 0;
        m_SelectedRowsList.Clear();
        for (int i=0; i < m_DataRowSource.Count; ++i)
          m_SelectedRowsList.Add(m_DataRowSource[i]);
        if (m_SelectedRowsList.Count > 0) 
          rowSelectionChanged();
        return m_SelectedRowsList.Count;
      }
public int SelectAllRows ( ) { if ( ! SelectAllRowsAllowed ) return 0 ; m_SelectedRowsList . Clear ( ) ; for ( int i = 0 ; i < m_DataRowSource . Count ; ++ i ) m_SelectedRowsList . Add ( m_DataRowSource [ i ] ) ; if ( m_SelectedRowsList . Count > 0 ) rowSelectionChanged ( ) ; return m_SelectedRowsList . Count ; }
Selects all rows.
Selects all rows .