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 Kolonun Değerini Almak

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

DevExpress XtraGrid Footer'ı Göstermek

DevExpress XtraGrid Kolona Göre Hücre Rengini Ayarlama

DevExpress XtraGrid Kolona Göre Hücre Yazı Rengini Ayarlama