<p>I am fetching data in  from an SQL table using a DataSet in VB.Net. When there is data in table, it displays the data properly in the grid, but when there is no data in the table, it only shows the UltraGrid's basic view.</p>

<p>How can I display the column names of the table as headings of the UltraGrid even when there is no data in Table?</p>

<hr>

<p>Thanks for the reply, but I think the problem that JD is having is a bit different from mine - in my application the data got fetched properly from SQL Server. My problem is that when there is no data in the table, I want to display the columns of the table as the headings of the grid with 0 rows. This is not happening.</p>

<p>It just shows a message box saying that no data is found, and the UltraGrid shows as it does by default in the application.</p>

Have you checked to make sure that the Active Directory change has propagated to TFS?  I've seen issues before where users information is changed and TFS doesn't pick up the change and gets confused about your user.
Also take a look at the following blog post.  It details how to sync up TFS with a user name change in Active Directory
http://blogs.msdn.com/teams_wit_tools/archive/2007/03/15/handling-display-name-changes-in-team-foundation-server.aspx