spread控件怎么得到选择多行的值?大哥们帮帮忙。 OperationMode=ExtendedSelect可以选择多行,我想得到被选择行的第一列的值,我该怎么写啊? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public ArrayList getSelectedRowIndex(AxFPSpreadADO.AxfpSpread oSpread) { //取被连续选中的单元格的所有的行值 ArrayList removeIndexs = new ArrayList(); for(int i=1;i<=oSpread.MaxRows;i++) { for(int j=1;j<=oSpread.MaxCols;j++) { if(oSpread.IsCellSelected(j,i)) { removeIndexs.Add(i); break; } } } if(removeIndexs.Count==0 && oSpread.ActiveRow>0) { removeIndexs.Add(oSpread.ActiveRow); } return removeIndexs; } 楼上的不对啊oSpread.Sheets[0]后面才是属性 明天,你的Spread是哪个版本啊,我的是winform1.050版的 DrawString描画不出空格的下划线 不能选择文件或者文件组NETWORKFLAT_LOG进行还原的原因? 急,身份证判断问题?? TabControl 怎么放背景呢? [技术帖]请教:dotnet下的消息处理机制 treeview的问题,定义展开节点的事件 ??怎样获得WEB TreeView控件的结点的值?? 图片验证码破译 4 位的数字 主窗体:mainfarm?在线等!!! 关于数据绑定的一个问题 有关自定义控件的 数组问题 大家来看下 Numeric 转换
{
//取被连续选中的单元格的所有的行值
ArrayList removeIndexs = new ArrayList();
for(int i=1;i<=oSpread.MaxRows;i++)
{
for(int j=1;j<=oSpread.MaxCols;j++)
{
if(oSpread.IsCellSelected(j,i))
{
removeIndexs.Add(i);
break;
}
}
}
if(removeIndexs.Count==0 && oSpread.ActiveRow>0)
{
removeIndexs.Add(oSpread.ActiveRow);
}
return removeIndexs;
}
oSpread.Sheets[0]后面才是属性