Spread Silverlight Documentation > Developer's Guide > Managing the User Interface > Using Drag Fill |
GcSpreadSheet has a drag fill option that allows the user to select cells and fill other cells with the same or different values. The fill type can be set to linear, growth, date, or automatic fill. The fill direction can also be specified. Additional options can be set such as step and stop values.
Select a cell or block and move the mouse pointer over the square at the corner of the selection. The mouse pointer changes to a double arrow that can be used to expand the fill range. Click on the plus mark to display a menu with additional fill options as shown in the following image:
Drag fill is not supported if the destination range contains a spanned cell. Drag fill does not apply to a conditional format or filtered range.
The CanUserDragFill property is used to specify whether to allow drag fill. The FillAuto method, FillDate method, FillGrowth method, or FillLinear method can be used to programmatically specify the type of fill.
The following example uses different fill methods to fill data in a range of cells.
CS |
Copy Code
|
---|---|
gcSpreadSheet1.CanUserDragFill = true; private void button1_Click(object sender, RoutedEventArgs e) |
VB.NET |
Copy Code
|
---|---|
GcSpreadSheet1.CanUserDragFill = True
|