This example demonstrates how to bind the XtraGrid to the XPPageSelector component. Please note that paging is not applicable to the XtraGrid, as the grid requires the entire collection to correctly apply any sorting, grouping or filtering. Therefore, grouping, sorting and filtering will only be applied to the current page when the grid is bound to the XPPageSelector component. We advise that you use the Server Mode feature instead.
Question Comments
Added By: Vikas Gupta 7 at: 11/28/2012 3:24:44 PM
Thanks for the code - but it's not working for me - I have tables with Schema for ex: Business.Files
In the class I am using
namespace ForeSight.Business
{
public class Files : XPLiteObject
{
int fFileID;
[Key(true)]
public int FileID
{
get { return FileID; }
set { SetPropertyValue<int>("FileID", ref fFileID, value); }
}
... and more fields
}
public Files(Session session) : base(session) { }
public Files() : base(Session.DefaultSession) { }
public override void AfterConstruction() { base.AfterConstruction(); }
}
I am setting up the xpoDefault connectionstring by
XpoDefault.ConnectionString = MSSqlConnectionProvider.GetConnectionString(@"localhost\sqlexpress", "DatabaseName");
The application runs but
The problem is each time it runs it creates a new table name in the database named dbo.Files (which obviously is empty) thus shows nothing....
I got your example application and created a similar application and verified the code - but found nothing abnormalities...
What am i doing wrong?
let me know if can get you more information thanks