MSFlexGrid 实现不连续选择单元格和实现保存MSFlexGrid数据到.DAT文件,并能从.DAT读出
找个好久,发现MSFlexGrid不能实现这个功能,只好自己写代码来实现,如果您有更好的方法请与我联系。
using
System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace BitmapRegion
... {
public partial class Form2 : Form
...{
private bool[,] cellselected = new bool[3, 16];
public Form2()
...{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
...{
this.axMSFlexGrid1.ClickEvent += new EventHandler(axMSFlexGrid1_ClickEvent);
axMSFlexGrid1.Rows = 3;
readtodat(axMSFlexGrid1);
}
/**/
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace BitmapRegion
... {
public partial class Form2 : Form
...{
private bool[,] cellselected = new bool[3, 16];
public Form2()
...{
InitializeComponent();
}
private void Form2_Load(object sender, EventArgs e)
...{
this.axMSFlexGrid1.ClickEvent += new EventHandler(axMSFlexGrid1_ClickEvent);
axMSFlexGrid1.Rows = 3;
readtodat(axMSFlexGrid1);
}
/**/