By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,665 Members | 1,406 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,665 IT Pros & Developers. It's quick & easy.

Datagrid not clearing

P: n/a
I have a problem with the datagrid not clearing when the datasource changes,
a few fields remain on the screen and even when new data would fill those
grid squares the old data remains.

I wind up with

101

Another field

and the rest of the grid is blank (as expected when no data exists in the
table).

I have added explicitly clearing the data source and reatching the table,
refreshing before and after (I am up to this now and it still leaves a dirty
screen):

dtHours.Clear()
dgEmpHours.DataSource = Nothing
dgEmpHours.Refresh()
dtHours = TAF.LocalProcDB.DB.GetDataTable(strSQL)
dgEmpHours.DataSource = dtHours
FormatHoursGrid()
dgEmpHours.Refresh()

Thank you for any help. (VS 2003, VB.NET)

Gary

Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.