Interview Question in Sharepoint Lists


 

Question :: I am writing webpart (sharepoint) in cSharp - how to update multiple rows displayed in datagrid

WEbpart is in C# -
I have code to display the list in datagrid - few columns are editable.
now i have a button to update all the rows - one button save - should give me access to datagrids -

I get nothing in the datagrid.items.

Thanks