如何在开始位置设置光标

时间:2016-08-29 11:52:32

标签: c# winforms

我有以下图片和代码。我使用RadGridViewExcelExporter Telerik Control将我的数据导出到Excel文件中。我有以下代码。我想从起点设置光标,但我的光标停止结束点(图像中的黄色高光)或最后一个记录。当我打开Excel表格时,它从最后一条记录中打开。

如何用起点打开Excel工作表?

exporter = new RadGridViewExcelExporter();

BackgroundWorker worker = new BackgroundWorker();
worker.DoWork += new DoWorkEventHandler(worker_DoWork);
worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
worker.RunWorkerAsync(saveFileDialog1.FileName);
exporter.Progress += new ProgressHandler(exportProgress);
Cursor previousCursor = Cursor.Current = Cursors.AppStarting;

Cursor.Current = Cursors.WaitCursor;
Cursor.Current = previousCursor;

截图:

enter image description here

0 个答案:

没有答案