DevExpress XtraGrid Kayıt Sayısını Göstermek

DevExpress XtraGrid 'de kayıt sayısını footer 'da göstermek için CustomDrawFooter eventi kullanılabilir..

Aşağıda örnek kullanımı gösterilmiştir..

private void ListeDataView_CustomDrawFooter(object sender, Views.Base.RowObjectCustomDrawEventArgs e)
 {
            e.Painter.DrawObject(e.Info);
            Font f = new Font(e.Appearance.Font, FontStyle.Bold);
            GridView view = sender as GridView;
            string sum = string.Format("{0}", view.DataRowCount + " ADET KAYIT");
            Point point = new Point(e.Bounds.Right - 125, e.Bounds.Top + 10);
            e.Graphics.DrawString(sum, f, Brushes.Black, point);
            e.Handled = true;
 }



İlginizi Çekebilir

DevExpress XtraGrid'de Multi Selection ve Checkbox Kolon Koymak

DevExpress XtraGrid Kolon Genişliğini Otomatikleştirme

DevExpress XtraGrid Hücreleri Tıklayarak Editlemek

DevExpress XtraGrid Kolon Başlığı Yükseklik Ayarı

DevExpress XtraGrid Arama Panelinin Gösterimi