We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Auto Fill Options

Thread ID:

Created:

Updated:

Platform:

Replies:

34535 Sep 12,2005 02:48 PM UTC Sep 13,2005 09:50 PM UTC WinForms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On September 12, 2005 02:48 PM UTC

Hi, Is there a way to enable the Auto Fill Option known from Excel in a GridDataBoundGrid. Auto Fill Option in Excel: 1.Select a single cell. 2. move the cursor right, bottom corner of the cell. The cursor will change into a + (plus) sign. 3. Hold down the left-mouse button at drag the mouse down. 4. Release the left-mouse button. Voila a number of cells are filled with the same value as the initial cell.

Administrator [Syncfusion]
Replied On September 13, 2005 09:50 PM UTC

Take a look at the Syncfusion\Essential Suite\Grid\Samples\In Depth\ExcelSelectionMarker sample. In that sample, if you position the cursor over the bottom right corner of a cell or selection, you get a special drag cursor that allows you to expand the selection by dragging. When you release the drag, in the sample a message box pops up that gives you the range selected. At that point, you could do your auto-fill. Now the sample does not actually do the autofill, but depending on what you want to do, you could use grid.ChangeCell to change the whole range to have the same style as the top left cell. Or, you could just loop through the range, explicitly setting values in some logical way depending upon what you want.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;