473,387 Members | 1,569 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.

.NET & DataGridView

Rob
Dear All,

I am having a few issues with DataGridViews. Here is what I have. In a
windows form I have added a DataGridView. My data is stored in an array of
instances of a class with several properties. Then I simply set the data
source property of the DataGridView to that array. The data is displayed but
there are a few issues:

1) The container is not the same size as the actual area occupied by the
data that is visualized. For instance the data visualized is narrower then
the container. I would like the columns to occupy the whole width of the
container.

2) There are more rows then can be displayed but I do not get a scroll bar
to go down to the other rows.

3) How can I manually set the width of a column?

4) How can I make one of my columns showing links? Note, for my data source
I have an array of instances of a class that exposes a property called Url
that is the actual URL I point to. This property returns a string and right
now the DataGridView displays it as such.

5) Even better I would like on property to be the URL and another property
to be the text that represents that URL. So for instance the property
"WhereAmI" returns "Alaska" and the property "Url" returns www.alaska.com.
Now one column of the datagridview shows "Alaska" and clicking on it would
bring me to www.alaska.com.
6) How can I change the order of the columns? DataGridView seems to display
the columns in some consistent but arbetrary way.

Thanks,
Rob
Jul 21 '05 #1
2 1781
Rob,

Did you know that there is a newsgroup for beta testing.
http://communities.microsoft.com/new...idbey&slcid=us

Probably not that active because the new Beta version is scheduled.

I hope this helps?

Cor
Jul 21 '05 #2
Rob
Cor,

Thanks for the reply. I have asked there and hope I'll get an answer.

Rob

"Cor Ligthert" <no************@planet.nl> wrote in message
news:#2**************@TK2MSFTNGP09.phx.gbl...
Rob,

Did you know that there is a newsgroup for beta testing.
http://communities.microsoft.com/new...idbey&slcid=us
Probably not that active because the new Beta version is scheduled.

I hope this helps?

Cor

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rob | last post by:
Dear All, I have a class that exposes a few properties. These properties are used in a DataGridView. The code for that is shown bellow. The problem is that I also need to show...
1
by: Irfan | last post by:
hi, all In VB 2005 Beta i cant find dataGrid control in the toolbox, instead DataGridView is available. What is the differance between the two ? How can i get dataGrid Control? Thanks
2
by: Rob | last post by:
Dear All, I am having a few issues with DataGridViews. Here is what I have. In a windows form I have added a DataGridView. My data is stored in an array of instances of a class with several...
1
by: Joaquin | last post by:
OK, I hate myself for asking this, it's the worst question I have ever asked but it's worse not to ask: ¿How do I update a datatable in vs 2005? I mean, I am using a typed dataset, a...
3
by: ShaneO | last post by:
Is there a way to discover the starting X & Y position (in Pixels) of a Cell within a DataGridView control on a Windows Form? (VS2005) I've searched everywhere, and tried everything I can think...
1
by: Dave | last post by:
I have a table with 3 fields of which the primary key is a autonumber. I have created my dataadapter, dataset and datagridview using a wizard. However, in the datagrid, the update and delete...
3
by: Mike | last post by:
Dear group, I'm currrently investigating a bug within a piece of our software whereby if a DataGridView (bound directly to a DataTable) is ordered by column headers (containing lookup combo...
2
by: Warex | last post by:
Hello I am having a problem with using the datagrid. I am attaching my data through a dataset via code to a datagridview.datasource. All if fine except if I make any changes to the datagrid the...
0
by: AKIAKI | last post by:
Hello. I wish TreeView & DataGridView were synchronized. (Same row is Selected and Selected Row is equal high ) I set DataGridView & TreeView on Split Container. When TreeView does not have...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.