In what context?
Is this a Windows application?
What have you tried so far?
A datagrid in a windows form can for example be bound to a DataSet or a DataView.
Here are some examples for you to try:
http://forums.asp.net/t/1524693.aspx
http://msdn.microsoft.com/en-us/library/aa984294(VS.71).aspx
All you have to do is put the code together in the button-click event.