質問

私はページングとASPxGridViewを使用し、ページャの設定は次です。

<SettingsPager
    Mode="ShowPager"
    Position="Bottom"
    Visible="true">

また、私はCustomButtonInitializeイベントがあります:

protected void gridViewInvoices_CustomButtonInitialize(object sender, ASPxGridViewCustomButtonEventArgs e)
{
    if (!e.IsEditingRow)
    {
        Invoice invoice = (Invoice)gridViewInvoices.GetRow(e.VisibleIndex);
        if (invoice != null)
        {
            if (e.ButtonID == "btnConfirmPayment")
            {
                e.Visible = invoice.PaymentConfirmedDate.HasValue ?
                    DefaultBoolean.False : DefaultBoolean.Default;
            }
        }
    }
}
私はこのグリッドでページを開くと、私は私のCustomButtonInitializeイベントをコメントする場合は、

ページャが消えしかします:

protected void gridViewInvoices_CustomButtonInitialize(object sender, ASPxGridViewCustomButtonEventArgs e)
{
    /*if (!e.IsEditingRow)
    {
        Invoice invoice = (Invoice)gridViewInvoices.GetRow(e.VisibleIndex);
        if (invoice != null)
        {
            if (e.ButtonID == "btnConfirmPayment")
            {
                e.Visible = invoice.PaymentConfirmedDate.HasValue ?
                    DefaultBoolean.False : DefaultBoolean.Default;
            }
        }
    }*/
}

ポケットベルが再び表示され、(のCustomButtonInitialize の)?

このイベントに依存してどのように私はそれを修正することができますし、どのようにページャがあります

敬具、アレックスます。

役に立ちましたか?

解決

ジョー、

また、これをチェックしてみます:

if (e.CellType == GridViewTableCommandCellType.Data)

それは、弊社のサポートチームに連絡し、彼らはあなたがそれを把握することができますしてください解決しない場合: http://www.devexpress.com/Support/Center/CreateIssue。 aspxの?issuetype =質問する

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top