N
Nicolaj
How do I set the maximum number of rows for a datagrid when binding a
datareader to it?
I am presently using:
OracleDataReader dr = getResults( parameters ); //returns a datareader
if (dr.HasRows)
{
dgSomeDatagrid.DataSource = dr;
dgSomeDatagrid.DataBind();
}
else
///
I've also implemented the ItemDataBound event for certain calculations.
No paging etc is implemented.
Now, for example I get the last transactions done by someone for the
past 5 months. I only want to display 10 records here. How do I go
about that?
Also, the datagrid is actually in a user control which I use in a few
other places as well and display all results there.
Regards,
Nicolaj
datareader to it?
I am presently using:
OracleDataReader dr = getResults( parameters ); //returns a datareader
if (dr.HasRows)
{
dgSomeDatagrid.DataSource = dr;
dgSomeDatagrid.DataBind();
}
else
///
I've also implemented the ItemDataBound event for certain calculations.
No paging etc is implemented.
Now, for example I get the last transactions done by someone for the
past 5 months. I only want to display 10 records here. How do I go
about that?
Also, the datagrid is actually in a user control which I use in a few
other places as well and display all results there.
Regards,
Nicolaj