|
-
Mar 23rd, 2004, 08:44 AM
#1
Thread Starter
Hyperactive Member
Dynamic change number of rows in a datagrid
I am loading a datagrid from a memory file loaded in a class. However, sometimes the number of records found do not fill the datagrid initial number of rows.
I have this..
dgPermits.DataSource = allpermitscon.LoadGrid_Mult_1(UserId , dgPermits.PageSize)
dgPermits.DataBind()
dgPermits.PageSize = dgPermits.Items.Count
But the pagesize does not change. I know and can see the dgPermits.Items.Count does generate the new value of items returned in the datasource. (saw 3).. I want this datagrid to contain ONLY 3 rows now..
gollnick
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|