|
-
Apr 11th, 2003, 06:29 AM
#1
Thread Starter
New Member
Filling a datagrid
Hi all!
I want the columns in a datagrid (where the datasource is a dataset) to resize with the forms size.
I did a solution like this:
DataGrid1.PreferredColumnWidth = DataGrid1.Width / 5 -Offset
(the number of columns is 5 and Offset for borders and stuff)
Didn't feel that proffesional...
Is there a command for filling the grid with columns? Like dock or anchor but with the data within?
Last edited by onis; Apr 11th, 2003 at 01:46 PM.
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
|