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

Bug with DataGrid using Windows.Form... namespace

P: n/a
RA
Hi

I wonder if anyone tried this or know if it has been fixed.

I am using vs .net 1.1 and have a windows form.
In the form I have a DataGrid with the following format:
3 first Columns are of type text box and 5 last columns are of type
checkbox(bool) I added some rows info.
When the RowHeadersVisible = false here is the problem I see:
When launching the application make sure to size down the window so that the
DataGrid horizontal scroll bar shows. You need to scroll it all the way to
the left so that the checkbox column will be outside of the view area. Now
if you scroll it back and forth making sure that the checkbox if out and in
the view area of the left side you will see the columns with the checkbox
has more than one checkbox. This is only happens when the checkbox column go
out of the view area on the left side of the window. When you get the
double/multiple checkboxes in one column bug, you can minimize and then
maximize the window and all goes back well.
Now if the RowHeadersVisible = true all works fine.

Ronen

Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I've seen the same problem myself. It looks to me like the DataGrid isn't
painting itself properly. Most Microsoft created controls use the
ScrollWindowEx API function when scrolling which just moves the contents of
the window instead of actually "repainting" them. If this is set improperly
it can give the same results that you and I are seeing. A quick fix might
be to call the Refresh method on the scroll event. That would force it to
get repainted on every scroll movement.

Hope this helps,
Jacob

"RA" <ro****@hotmail.com> wrote in message
news:uW**************@TK2MSFTNGP12.phx.gbl...
Hi

I wonder if anyone tried this or know if it has been fixed.

I am using vs .net 1.1 and have a windows form.
In the form I have a DataGrid with the following format:
3 first Columns are of type text box and 5 last columns are of type
checkbox(bool) I added some rows info.
When the RowHeadersVisible = false here is the problem I see:
When launching the application make sure to size down the window so that the DataGrid horizontal scroll bar shows. You need to scroll it all the way to
the left so that the checkbox column will be outside of the view area. Now
if you scroll it back and forth making sure that the checkbox if out and in the view area of the left side you will see the columns with the checkbox
has more than one checkbox. This is only happens when the checkbox column go out of the view area on the left side of the window. When you get the
double/multiple checkboxes in one column bug, you can minimize and then
maximize the window and all goes back well.
Now if the RowHeadersVisible = true all works fine.

Ronen

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.