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 Satıra Tıklandığında Tüm Satırın Seçilmesi

DevExpress XtraGrid Kolona Göre Hücre Rengini Ayarlama

DevExpress XtraGrid Hücreleri Tıklayarak Editlemek

DevExpress XtraGrid Kolon Genişliğini Otomatikleştirme

DevExpress XtraGrid Seçilen Satırın Rengini Ayarlama