True DBGrid for WinForms
DataRowIndex プロパティ
使用例 

C1.Win.C1TrueDBGrid.4 アセンブリ > C1.Win.C1TrueDBGrid.BaseGrid 名前空間 > ViewRow クラス : DataRowIndex プロパティ
データソース内の行のインデックスを取得します。
シンタックス
'宣言
 
Public ReadOnly Property DataRowIndex As System.Integer
public System.int DataRowIndex {get;}
解説

対応するデータ行が存在しない場合は -1 を返します。たとえば、グループ行がこれに該当します。

ビュー行インデックスをデータ行インデックスに変換するには、DataRowIndex プロパティを使用します。

使用例
private void c1TrueDBGrid1_FetchCellStyle(object sender, C1.Win.C1TrueDBGrid.FetchCellStyleEventArgs e)
{
  ViewRow row = this.c1TrueDBGrid1.Splits[0].Rows[e.Row];
  if (row.RowType == RowTypeEnum.DataRow)
  {
    bool val = (bool)this.c1TrueDBGrid1[row.DataRowIndex, 3];
    if (val == true)
      e.CellStyle.BackColor = Color.Red;
  }
}
参照

ViewRow クラス
ViewRow メンバ