作成日: 2014/09/26 最終更新日: 2014/09/26
文書種別
使用方法
詳細
フィルタリング後に、すべての行から表示されている行のみをカウントして件数を取得します。
◎サンプルコード(VB)
◎サンプルコード(C#)
◎サンプルコード(VB)
Dim vRows As Integer = 0
For Each r As C1.Win.C1FlexGrid.Row In C1FlexGrid1.Rows
If r.Visible = True Then
vRows += 1
End If
Next
vRows -= C1FlexGrid1.Rows.Fixed
Debug.WriteLine("行数: " + vRows.ToString())
For Each r As C1.Win.C1FlexGrid.Row In C1FlexGrid1.Rows
If r.Visible = True Then
vRows += 1
End If
Next
vRows -= C1FlexGrid1.Rows.Fixed
Debug.WriteLine("行数: " + vRows.ToString())
◎サンプルコード(C#)
int vRows = 0;
foreach (C1.Win.C1FlexGrid.Row row in c1FlexGrid1.Rows)
if (row.Visible == true)
vRows += 1;
vRows -= c1FlexGrid1.Rows.Fixed;
System.Diagnostics.Debug.WriteLine("行数: " + vRows.ToString());
foreach (C1.Win.C1FlexGrid.Row row in c1FlexGrid1.Rows)
if (row.Visible == true)
vRows += 1;
vRows -= c1FlexGrid1.Rows.Fixed;
System.Diagnostics.Debug.WriteLine("行数: " + vRows.ToString());
旧文書番号
74904