Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
24038 | Jan 27,2005 10:53 AM UTC | Jan 27,2005 11:21 AM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
this.gridControl1.DataExchange.CopyCellsToDataObject
this.gridControl1.DataExchange.PasteCellsFromDataObject
Here is a little snippet that moves 1 grid to another. You would have to set the paste row/col to move to the proper location.
private void button1_Click(object sender, System.EventArgs e) { GridData data = new GridData(); int rowCount, colCount; GridRangeInfo range = GridRangeInfo.Table(); range = range.ExpandRange(1, 1, this.gridControl1.RowCount, this.gridControl1.ColCount); this.gridControl1.DataExchange.CopyCellsToDataObject(out data, range, false, GridDragDropFlags.Styles, out rowCount, out colCount); this.gridControl2.DataExchange.PasteCellsFromDataObject(data, GridRangeInfo.Cell(1,1), true, GridDragDropFlags.Styles); }
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.
This page will automatically be redirected to the sign-in page in 10 seconds.