This project is read-only.

copy range in clipboard

May 8, 2010 at 11:10 AM

Sorry for this very trivial question, I am a beginner !

I dont understand my mistake

I want just copy a range of data in the clipboard, with this code

        Dim minRow As Integer = 0, maxRow As Integer = 0, minCol As Integer = 0, maxCol As Integer = 0
        Dim i, j As Int16

        maxRow = Grille1.RowsCount
        maxCol = Grille1.ColumnsCount
        For i = 0 To maxRow
            For j = 0 To maxCol
                Grille1.Selection.SelectCell(New SourceGrid.Position(i, j), True)
            Next j
        Next i
        Dim selRegion As SourceGrid.RangeRegion = Grille1.Selection.GetSelectionRegion()


the range is select, but there is nothing in the clipboard

I I select manually the range. It's work ???

if somebody can help me

best regards,