DATA GRID REALLY BIG PROBLEM... IS THIS A BUG?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I do not know how to even describe this problem... If there was any way to upload the picture i would have uploaded the snapshot...

Going to require a REAL .net GURU to resolve this problem

here is scenari

I use a data grid... i have done a lot of things with data grid in that form, like showing combo box in one of the fields etc... Also even handling the mouse up event to avoid user clicking on last row etc..

here is the problem

1) At times when i load the grid, the BUTTONS, GRID and all the place holders are replaced by WHITE AREA with RED DIAGONAL CROSS .. something like this [X] .. can not see text on them.. Funny thing is buttons keep operating... (events still exist)

2) This problem appears SO RARELY that i am not even able to degug for a specific issue

3) This mostly happens when i load the form... and then each form starts showing up like that.. till i close the application

4) At times there is an error indicated by a dialobox that has title MS.net FRAMEWORK., but on that dialog box as well those white boxes with RED DIAGONALs are seen hence can not see the error message as well.

ANY HELP will be appreciated... Can not tell enough how important is this for my deliverables

Harsh
 
The big red X means the paint event of the DataGrid failed. I encoutered a
bug in the DataGrid when using DataGridTextBoxColumn and trying to reset the
DataSource property multiple times. It didn't always occur, only when the
user had to scroll horizontally and then clicked on any of the cells. Read
thread 'Column C does not belong to table T error' on the
microsoft.public.dotnet.framework.windowsforms.databinding newsgroup for
more details.

Harsh said:
I do not know how to even describe this problem... If there was any way to
upload the picture i would have uploaded the snapshot....
Going to require a REAL .net GURU to resolve this problem.

here is scenario

I use a data grid... i have done a lot of things with data grid in that
form, like showing combo box in one of the fields etc... Also even handling
the mouse up event to avoid user clicking on last row etc...
here is the problem

1) At times when i load the grid, the BUTTONS, GRID and all the place
holders are replaced by WHITE AREA with RED DIAGONAL CROSS .. something
like this [X] .. can not see text on them.. Funny thing is buttons keep
operating... (events still exist).
2) This problem appears SO RARELY that i am not even able to degug for a specific issue.

3) This mostly happens when i load the form... and then each form starts
showing up like that.. till i close the application.
4) At times there is an error indicated by a dialobox that has title
MS.net FRAMEWORK., but on that dialog box as well those white boxes with RED
DIAGONALs are seen hence can not see the error message as well..
 
1) I have finally found solution this problem... guys who all are getting this problem... there is a very simple solution to this bug..
2) Before assigning the DATASET to the datagrid... set DATASOURCE property to NOTHING/null and all the problems resolved like magic..

This is what i follow (VB.net) .. dgApprove is my datagrid instanc

dgApprove.DataSource = Nothin
dgApprove.Enabled = Fals
dgApprove.SetDataBinding(sqlDatasetTMP, "Table1"
dgApprove.Refresh(
dgApprove.Enabled = Tru
dgApprove.PerformLayout(

Harsh
 
What was this a solution for?

- Kevin

Harsh said:
1) I have finally found solution this problem... guys who all are getting
this problem... there is a very simple solution to this bug...
2) Before assigning the DATASET to the datagrid... set DATASOURCE property
to NOTHING/null and all the problems resolved like magic...
 
Back
Top