Created
April 24, 2014 08:50
-
-
Save xerardoo/11247007 to your computer and use it in GitHub Desktop.
GridControl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///model | |
public class CustomerDAO{ | |
public XPCollection<Client> getAllCustomer() | |
{ | |
var session = Session.DefaultSession; | |
XPCollection<Client> Customers = new XPCollection<Client>(session); | |
return Customers; | |
} | |
} | |
///view | |
public partial class CustomerXF : DevExpress.XtraEditors.XtraForm | |
{ | |
public CustomerXF() | |
{ | |
InitializeComponent(); | |
} | |
private void CustomerXF_Load(object sender, EventArgs e){ | |
CustomerDAO c = new CustomerDAO(); | |
this.gridControlCustomer.DataSource = c.getAllCustomer(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment