how to autosize the data grid ?

i want that the grid should flexibly resize widthwise according to the number of columns. and then finally it should consume the whole space available on the form widthwise.