ComponentOne DataGrid for WPF and Silverlight
In This Topic
    Run-time Interaction
    In This Topic

    You can customize how much control end users have over the grid at run time. For example you can enable grouping, and prevent actions such as filtering columns and resizing rows. The following table lists properties that you can use to customize how users interact with the grid:

     

    Property Description
    CanUserAddRows Determines if users can add rows at run time. True by default.
    CanUserEditRows Determines if users can edit rows at run time. True by default.
    CanUserFilter Determines if users can filter columns at run time. If True, the filter bar will be visible on columns. True by default.
    CanUserGroup Determines if users can group rows at run time. If True the grouping area of the grid will be visible. False by default.
    CanUserRemoveRows Determines if users can remove rows at run time by pressing the DELETE key. True by default.
    CanUserReorderColumns Determines if users can reorder columns at run time by using a drag-and-drop operation. True by default.
    CanUserResizeColumns Determines if users can resize columns at run time. True by default.
    CanUserResizeRows Determines if users can resize rows at run time. False by default.
    CanUserSort Determines if users can sort columns at run time by clicking on a column's header. True by default.
    CanUserToggleDetails Determines if users can toggle the row details section's visibility. True by default.
    CanUserFreezeColumns Determines if users can change the number of frozen columns by dragging the freezing separator at run time. None by default.

    In each column you can customize the following properties:

    Property Description
    CanUserMove Determines if users can reorder this column at run time. True by default.
    CanUserResize Determines if users can resize this column at run time. True by default.
    CanUserFilter Determines if users can filter this column at run time. If True, the filter bar will be visible on this column. True by default.
    CanUserSort Determines if users can sort this column at run time. True by default.

     

    Note: The properties set in the grid take precedence over those set in columns.
    See Also