<bimsa:GridViewBase ID="gridYorum" runat="server" KeyFieldName="Id" ClientInstanceName="gridYorumClient" OnCustomButtonCallback="StatuGuncelleCallBack"
KaynakKodu="0" Width="100%" OnCustomCallback="grid_CustomCallback" >
<ClientSideEvents EndCallback="function(s, e) {
}" />
<Columns>
<bimsa:DataColumn FieldName="Statu" Visible="false" ></bimsa:DataColumn>
<bimsa:DataColumn FieldName="Yorum" Width="430px" Caption="<%$Resources: Controls, Yorum %>" VisibleIndex="1"></bimsa:DataColumn>
<bimsa:DataColumn FieldName="OlusturanKullanici" Width="100px" Caption="<%$Resources: Controls, YorumSahibi %>" VisibleIndex="2" ></bimsa:DataColumn>
<bimsa:DateTimeColumn FieldName="OlusturmaZamani" Width="100px" Caption="<%$Resources: Controls, YorumZamani %>" VisibleIndex="3" ></bimsa:DateTimeColumn >
<bimsa:CommandColumn KaynakKodu="123">
<CustomButtons>
<bimsa:CustomButton ID="statuGuncelle" Text="Okundu Yap / Okunmadı Yap">
</bimsa:CustomButton>
</CustomButtons>
</bimsa:CommandColumn>
</Columns>
ID のカスタム ボタンがstatuGuncelle
あり、それをクリックすると、このイベントを使用してこのボタンのテキストを変更したい
c#
protected void StatuGuncelleCallBack(object sender, ASPxGridViewCustomButtonCallbackEventArgs e)
{
BIMSA.Web.UI.Controls.GridViewBase grd = (BIMSA.Web.UI.Controls.GridViewBase)sender;
var key=grd.GetRowValues(e.VisibleIndex, grd.KeyFieldName);
...................