copy range in clipboard

May 8, 2010 at 10: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
        'Grille1.Selection.ResetSelection(False)

        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()
        Grille1.PerformCopy(selRegion)

 

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,

 

Maurice