Skip to content

DevExpress-Examples/wpf-grid-resize-rows-using-splitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Files to look at:

WPF Grid - Resize rows using a splitter

To make the row height resizable, perform these steps:

1. Create a control class that describes the IResizeHelperOwner interface.

2. Create an attached RowHeight property, add it to this class and assign the property value to the RowData’s RowState property.

3. In GridControl’s view, create DataTemplate for the view’s DataRowTemplate property that contains ContentControl and the control that was created earlier. Add RowSplitter into the control’s template.

4. Bind ContentControl’s ContentTemplate property to the view’s DefaultDataRowTemplate to show data. Also, bind ContentControl’s height to the control’s RowHeight property to resize the row.


Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Displays a splitter within grid rows. Users can change the height of individual rows.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •