Mike,
thanks for helping. But, there is something i don't understand.
Normaly, i create a grid at design. So, i can put some code in the click event of the header. But now, when the user clicks on a button at runtime, i create the grid with the code above. But where do i put the code for the...