Results 1 to 1 of 1

Thread: Filling a datagrid

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Location
    Gothenburg
    Posts
    4

    Question 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
  •  



Click Here to Expand Forum to Full Width