Pythontr

husonet | Tarih: 09.02.2018

DevExpress ASPxGridView içinde satır seçimi

ASPxGridView ile tüm satırları veya tek satırı otomatik seçtirmek

<dx:ASPxGridView ID="grid1" ClientInstanceName="grid1" runat="server" DataSourceID="CustomersDataSource"
KeyFieldName="K_ID" Width="100%" OnCustomJSProperties="GridView_CustomJSProperties" EnableRowsCache="false">
<Settings ShowFilterRow="true" ShowFilterBar="Auto" />
<SettingsBehavior AllowGroup="false" AllowDragDrop="false" />
<ClientSideEvents Init="OnGridViewInit" SelectionChanged="OnGridViewSelectionChanged" EndCallback="OnGridViewEndCallback" />
<Columns>
<dx:GridViewCommandColumn ShowSelectCheckbox="True" ShowClearFilterButton="true" SelectAllCheckboxMode="Page" /> // seçim sütunudur
<dx:GridViewDataColumn FieldName="Ad" />
<dx:GridViewDataColumn FieldName="Soyad" />
<dx:GridViewDataColumn FieldName="Şehir" />
</Columns>
</dx:ASPxGridView>