Geeks With Blogs

About Me:
I am a Female SharePoint Developer (a platinum unicorn). I have been working with SharePoint since I attended the Portal University in 2005. I hold a BA in Computer Science from the University of Missouri - Kansas City. I love playing Rockband, organizing user group meetings, working with code, attending events as a speaker or organizer, and having bizarre conversations about geek things with cool people. If you have any comments or questions fill out the contact form and I will try my best to help.

The Guide of a MOSSLover Becky Isserman's Blog

I was working a SPDataGridView Webpart today.  I was trying to get the grid to refresh and re-bind itself after a specific client was deleted in the web part.  When I tried to clear the grid it would not clear at all.  It would refresh with the exact same data, until I hit F5 on Internet Explorer.  I finally thought to myself what if I get rid of the Dataview as a source and call the DataSet directly.  Sure enough I change it and clear the DataSet, then rebind and grid and when I delete the client it refreshes without the deleted item.  So what is the purpose of a DataView?  I'm really not sure, but I will be finding out in the future.  It seems a little bit extra to bind a grid to two separate objects when one will do.

Posted on Tuesday, March 11, 2008 1:33 PM MOSS , Web parts | Back to top

Comments on this post: The DataGrid and His Enemy the Dataview

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © MOSSLover | Powered by: