473,387 Members | 1,476 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Bug with DataGrid using Windows.Form... namespace

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
1 1704
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tamlin | last post by:
Hi all, I'm getting a bug with the datagrid object. I've created one from scratch, bound it to a dataview with 2 int32 columns and formatted the output as currency. I've found that when you...
2
by: SammyBar | last post by:
Hi, I'm trying to bind a custom collection class to a data grid, following the guidelines from the article http://msdn.microsoft.com/msdnmag/issues/05/08/CollectionsandDataBinding/default.aspx....
6
by: aaa | last post by:
Hi I am trying to create a read-only DataGrid that would always have current row selected. Currently, I am using method: public void SelectDataGridRow(DataGrid dg) { if (dg.CurrentRowIndex >...
1
by: Vagabond Software | last post by:
I am creating a custom datagrid based, in part, from someone else's code. The author declared a derived datagrid class in a windows form, then declared a derived ColumnStyle class, in the same form,...
0
by: Mauro | last post by:
Hi, I need a big help to resolve this problem. I need to put a usercontrol in a datagrid: this control check if the code inserted is present in a archive and if not return a error message. (In...
3
by: Richard | last post by:
I have a requirement to put a GDI style circle or rectangle border around the selected row of a datagrid/ It will overlap into the row above and below the selected row. Doing this in a the OnPaint...
0
by: Dave | last post by:
Tried posting in the Winform Forum without much luck, so posting here... After inserting a new data row to a DataTable that is bound to a datagrid, I am unable to change data in a row that is...
2
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
1
by: Steve | last post by:
I have a DataGrid connected to a DataSet (read in from an XML file). The documentation that I've read suggests that I attach a DataGridTableStyle to the DataGrid to allow for additional...
4
by: Melson | last post by:
Hi I've a problem. Can anyone help. I would like to use datagrid for data entry. How can I set the number of rows in the datagrid. And use the datagrid to update the ms sql table. regards...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.