DataGridView里显示了这些数据,我想不重复显示。怎么弄啊 最好具体点 我是新手 sql语句中去重 SELECT DISTINCT 字段 from 表
dataGridView显示为重复的多行问题如何解决 按你的方法写,代码要循环8次,自然显示为重复行。代码要这样写:Structure ResultPublic GeneralAntislip As SinglePublic GeneralAntioverturning As SinglePublic ImpactAntislip As SinglePublic ImpactAntioverturning As SinglePublic SeismicAntislip As SinglePublic seismicAntioverning As SinglePublic sigmamax As SinglePublic sigmamin As SingleEnd StructureDim results(0)As Resultresults(0).GeneralAntislip=SF(0)results(0).GeneralAntioverturning=SF(1)results(0).ImpactAntislip=SF(2)results(0).ImpactAntioverturning=SF(3)results(0).SeismicAntislip=SF(4)results(0).seismicAntioverning=SF(5)results(0).sigmamax=SF(6)results(0).sigmamin=SF(7)Dim query=From i In resultsLet GeneralAntislip=i.GeneralAntislipLet GeneralAntioverning=i.GeneralAntioverturningLet ImpactAntislip=i.ImpactAntislipLet ImpactAntioverning=i.ImpactAntioverturningLet SeismicAntislip=i.SeismicAntislipLet SeismicAntioverning=i.seismicAntioverningLet sigmaMax=i.sigmamaxLet sigmamiin=i.sigmaminSelect 。
C# winform 去掉dataGridView1里面的重复数据问题 可以在datagridview的数据源查询语句中添加去重复,直接将查询结果去重复 都可以,在sql处理的话就是按编号分组,取出每组。