How to implement Cut method with a Virtual Grid

Article ID: 763
Last updated: 05 Jan, 2012
Article ID: 763
Last updated: 05 Jan, 2012
Revision: 1
Views: 1485
Posted: 22 Aug, 2005
by Meltreger B.
Updated: 05 Jan, 2012
by Meltreger B.
Problem

 Cut does not work if Objective Grid for Microsoft« .NET's GridControl is used as a virtual grid


Cause




Action

The following workaround gets around this problem:

 

this.gridControl1.Cut += new Stingray.Grid.CutEventHandler(this.gridControl1_Cut);

 

 private void gridControl1_Cut (object sender,System.EventArgs e)

 {

          gridControl1.SetSel(0,-1);   

  }

 

For more details on how to implement the function, SetSel( ),

please refer to the KB Article Document, 041214-008, Select a Range of Characters in a Cell


This article was:   Helpful | Not helpful
Report an issue
Article ID: 763
Last updated: 05 Jan, 2012
Revision: 1
Views: 1485
Posted: 22 Aug, 2005 by Meltreger B.
Updated: 05 Jan, 2012 by Meltreger B.

Others in this category