React Horizontal Scrolling

    The Ignite UI for React Data Table / Data Grid supports Horizontal Scrolling is enabled by setting the total width of the columns greater than the width of the React data grid.

    React Horizontal Scrolling Example

    Setting Default Column Width

    <IgrDataGrid
        height="100%"
        width="100%"
        autoGenerateColumns="true"
        defaultColumnMinWidth={300}
        dataSource={this.data}/>
    

    Setting Individual Column Widths

    <IgrDataGrid
        height="100%"
        width="100%"
        autoGenerateColumns="false"
        dataSource={this.data}>
            <IgrTextColumn field="FirstName" headerText="First Name" width="300"/>
            <IgrTextColumn field="LastName" headerText="Last Name" width="300"/>
            <IgrNumericColumn field="Age" headerText="Age" width="300"/>
            <IgrDateTimeColumn field="Birthday" headerText="Birth Date" width="300"/>
            <IgrTextColumn field="Street" headerText="Street Address" width="300"/>
            <IgrTextColumn field="City" headerText="City and State" width="300"/>
            <IgrTextColumn field="Salary" headerText="Salary" width="300"/>
            <IgrTextColumn field="Sales" headerText="Sales" width="300"/>
        </IgrDataGrid>
    

    API References