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 Arama Panelinin Gösterimi

DevExpress XtraGrid Kolonun Değerini Almak

DevExpress XtraGrid Kolon Başlığı Yazı Ayarları

DevExpress XtraGrid Satıra Tıklandığında Sadece Hücrenin Seçilmes ...

DevExpress XtraGrid Kolona Göre Hücre Yazı Ayarları