2024年4月11日发(作者:photoshop在线使用网页版)
Spread 常用属性
Spread 常用属性
1 取得当前行号、列号。
int row=;
int count=;
或者:
int rowindex = RowIndex;
int columnindex = ColumnIndex;
2 单击一行变颜色。
private void spdResult_CellClick(object
ickEventArgs e)
{
//单击Spread列头时,什么也不处理
sender,
if(!Header)
{
if([0].!=0)
{
for(int i=0;i<[0].;i++)
{
[0].Rows[i].BackColor=;
}
int row=;
[0].Rows[row].BackColor=
gb((()(192)), (()(255)), (()(255)));
}
}
}
3 将Spread的单元格内容付值给一控件的Text
= [0].Cells[row,count].Text;
4 给Spread的指定单元格付值。
发布者:admin,转转请注明出处:http://www.yc00.com/xitong/1712849628a2134177.html
评论列表(0条)