G
Guest
I want to cpunt the number of rows in GridView. But it gives me the
following error
System.InvalidCastException: Unable to cast object of type 'UsersDataTable'
to type 'System.Data.DataView'.
The following is my event handler.
protected void ObjectDataSource1_Selected(object sender,
ObjectDataSourceStatusEventArgs e)
{
Label2.Text = "Total Record count in the dropdownlist above= " +
((DataView)e.ReturnValue).Count.ToString();
}
following error
System.InvalidCastException: Unable to cast object of type 'UsersDataTable'
to type 'System.Data.DataView'.
The following is my event handler.
protected void ObjectDataSource1_Selected(object sender,
ObjectDataSourceStatusEventArgs e)
{
Label2.Text = "Total Record count in the dropdownlist above= " +
((DataView)e.ReturnValue).Count.ToString();
}