VB6 datagrid的两个问题(求助)
问题一:
datagrid表头的序号在筛选后就乱了,怎么重新生成呢?
NO Tester ID Cell ID Group Mode Yield
1 6084 01 S11 J1B 25%
2 6083 02 S12 J1B 5%
3 6082 03 S13 J1B 45%
4 6081 04 S21 J1B 21%
5 6080 05 S12 J1B 33%
筛选后就变成了
NO Tester ID Cell ID Group Mode Yield
1 6084 01 S11 J1B 25%
2 6083 02 S12 J1B 5%
3 6082 03 S13 J1B 45%
5 6080 05 S12 J1B 33%
我想让它自动编号为:
NO Tester ID Cell ID Group Mode Yield
1 6084 01 S11 J1B 25%
2 6083 02 S12 J1B 5%
3 6082 03 S13 J1B 45%
4 6080 05 S12 J1B 33%
该如何实现?
问题二:
统计出Group列下S1的记录个数显示到Label1中,请各位高手帮忙解答.
select 序号= IDENTITY(INT,1,1),
a.Tester ID,
a.Cell ID,
a.Group,
a.Mode,
a.Yield
into #temp
from AllZone where [group] like 'S1%'
go
select * from #temp
go
drop table #temp
go
select RANK() OVER (ORDER BY Cell ID ) AS 序号,
Tester ID,
Cell ID,
Group,
Mode,
Yield
from AllZone where [group] like 'S1%'