XtraReport の行 (クリックされた場所) からすべての値を取得しようとしました。
理由はわかりませんが、xrTableRow1_PreviewClick と xrTable1_PreviewClick が機能しません。
xrTableCell4_PreviewClick のみで機能します。そして、「e.Brick.Text」を通じて、セル内の値のみを取得できます。
private void xrTableCell1_PreviewClick(object sender, PreviewMouseEventArgs e)
{
var tmp = e.Brick.Text;
}
私が試してみると:
GetCurrentRow()
最初の行のみを提供します。それは私が必要とするものではありません。)
クリックされた行からすべての値を取得するにはどうすればよいですか? または、クリックした行インデックスを取得するにはどうすればよいですか?
私のレポートはデザイナーで次のようになります。
前もって感謝します!