|
@@ -188,7 +188,7 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
|
|
|
|
|
|
//设置每列的宽度
|
|
//设置每列的宽度
|
|
dgV_SimilarParticles.Columns[0].Width = 30;//第一列序号的宽度设置一下吧,要不太丑
|
|
dgV_SimilarParticles.Columns[0].Width = 30;//第一列序号的宽度设置一下吧,要不太丑
|
|
- dgV_SimilarParticles.Columns[1].Width = 50;
|
|
|
|
|
|
+ dgV_SimilarParticles.Columns[1].Width = 100;
|
|
for (int i = 4; i < dgV_SimilarParticles.Columns.Count; i++)
|
|
for (int i = 4; i < dgV_SimilarParticles.Columns.Count; i++)
|
|
{
|
|
{
|
|
dgV_SimilarParticles.Columns[i].Width = 65;
|
|
dgV_SimilarParticles.Columns[i].Width = 65;
|
|
@@ -425,7 +425,13 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
|
|
double num = 0;
|
|
double num = 0;
|
|
if (double.TryParse(particles.Rows[i][enl.Current.Key].ToString(), out num))
|
|
if (double.TryParse(particles.Rows[i][enl.Current.Key].ToString(), out num))
|
|
{
|
|
{
|
|
- dgV_SimilarParticles.Rows[add_rowindex].Cells[k].Value = Math.Round(num, 2);
|
|
|
|
|
|
+ if (enl.Current.Key == "SimilarRatio")
|
|
|
|
+ {
|
|
|
|
+ dgV_SimilarParticles.Rows[add_rowindex].Cells[k].Value = Math.Round(num, 5);
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ dgV_SimilarParticles.Rows[add_rowindex].Cells[k].Value = Math.Round(num, 2);}
|
|
}
|
|
}
|
|
else if (enl.Current.Key == "Element")
|
|
else if (enl.Current.Key == "Element")
|
|
{
|
|
{
|