468,234 Members | 1,665 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,234 developers. It's quick & easy.

Datagrid not clearing

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
0 1651

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Brad | last post: by
5 posts views Thread by John Richardson | last post: by
2 posts views Thread by enak | last post: by
reply views Thread by guy | last post: by
reply views Thread by Gary | last post: by
1 post views Thread by amber | last post: by
9 posts views Thread by mfahnestock | last post: by
2 posts views Thread by DaveP | last post: by
4 posts views Thread by gane | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.