我想给每一行加上HyperLink,我循环对每行都进行处理过,为什么显示的内容一样,全都显示我最后一笔数据的text
FarPoint.Win.Spread.CellType.HyperLinkCellType linkcell = new FarPoint.Win.Spread.CellType.HyperLinkCellType();
for (int i = 0; i < fpRequest.ActiveSheet.NonEmptyRowCount; i++)
{
linkcell.Text = fpRequest.ActiveSheet.Cells[i, 2].Text.Trim();
fpRequest.ActiveSheet.Cells[i, 2].CellType = linkcell;
linkcell.Link = "";
}
|
|