LKNetDev,
For EntityGridView to work against ObjectDataSource edit the EntityGridView.cs and modify the following:
void dsc_Selected(object sender, ObjectDataSourceStatusEventArgs e)
{
RecordsCount = e.AffectedRows;
RecordsCount = ((DataSet)e.ReturnValue).Tables[0].Rows.Count;
}
Thanks,
Michael
P.S - You could get quicker responses to your questions from the dedicated to .nettiers forums http://community.codesmithtools.com/forums/default.aspx?GroupID=11
LKNetDev:I have an EntityGridView that points to a ObjectDataSource object. I can get the gird to display the query results with sorting and paging. The problems I have is it always show "Total Records: -1" even though the actually number of rows displayed is 135, and the "Record Per Page" combo box box is always empty. I know the ObjectDataSource.SelectCountMethod is called and it returned the right row count. I don't know what else to try, please help!
Thanks.
Mike Shatny
--------------------------------------------------------------
Member of the .netTiers team http://www.nettiers.com
--------------------------------------------------------------