473,395 Members | 1,341 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,395 software developers and data experts.

is there a control that displays a multi-column array of rectangles

I need a control that displays a grid of rectangles.

That is, like a brick wall except the rectangles are lined up.

In VB6 I used such a control (may have been called FlexGrid but I'm not
sure.)

I did see the DataGrid control but that seems oriented to DB usage. It's
probably much more complex than what I need, but I'm not sure about that!

Bottom line: is there a control that displays a multi-column array of
rectangles that can each contain text?
Thanks
May 3 '07 #1
9 1640

" active" <ac**********@a-znet.comwrote in message
news:u9**************@TK2MSFTNGP02.phx.gbl...
>I need a control that displays a grid of rectangles.

That is, like a brick wall except the rectangles are lined up.

In VB6 I used such a control (may have been called FlexGrid but I'm not
sure.)

I did see the DataGrid control but that seems oriented to DB usage. It's
probably much more complex than what I need, but I'm not sure about that!

Bottom line: is there a control that displays a multi-column array of
rectangles that can each contain text?
Thanks
Do you need to edit the values in the Grid, and by the way you could think
of new controls as the Grandchildren of FlexGrid. FlexGrid was made to work
with databases but most people I know only used it unbound.

The DataGrid is easy to work with and can be used unbound in the same
fashion as FlexGrid. Perhaps if you gave a little info on what your app
does we can help.

Lloyd Sheen

May 3 '07 #2
I simply want to display the grid of strings in the cells. And be able to
tell which cell a mouse clicked. No user editing. I'll look at DataGrid
unless you recommend something else.

Thanks
"Lloyd Sheen" <a@b.cwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>
" active" <ac**********@a-znet.comwrote in message
news:u9**************@TK2MSFTNGP02.phx.gbl...
>>I need a control that displays a grid of rectangles.

That is, like a brick wall except the rectangles are lined up.

In VB6 I used such a control (may have been called FlexGrid but I'm not
sure.)

I did see the DataGrid control but that seems oriented to DB usage. It's
probably much more complex than what I need, but I'm not sure about that!

Bottom line: is there a control that displays a multi-column array of
rectangles that can each contain text?
Thanks

Do you need to edit the values in the Grid, and by the way you could think
of new controls as the Grandchildren of FlexGrid. FlexGrid was made to
work with databases but most people I know only used it unbound.

The DataGrid is easy to work with and can be used unbound in the same
fashion as FlexGrid. Perhaps if you gave a little info on what your app
does we can help.

Lloyd Sheen

May 3 '07 #3

" active" <ac**********@a-znet.comwrote in message
news:eF**************@TK2MSFTNGP03.phx.gbl...
>I simply want to display the grid of strings in the cells. And be able to
tell which cell a mouse clicked. No user editing. I'll look at DataGrid
unless you recommend something else.

Thanks
"Lloyd Sheen" <a@b.cwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>
" active" <ac**********@a-znet.comwrote in message
news:u9**************@TK2MSFTNGP02.phx.gbl...
>>>I need a control that displays a grid of rectangles.

That is, like a brick wall except the rectangles are lined up.

In VB6 I used such a control (may have been called FlexGrid but I'm not
sure.)

I did see the DataGrid control but that seems oriented to DB usage. It's
probably much more complex than what I need, but I'm not sure about
that!

Bottom line: is there a control that displays a multi-column array of
rectangles that can each contain text?
Thanks

Do you need to edit the values in the Grid, and by the way you could
think of new controls as the Grandchildren of FlexGrid. FlexGrid was
made to work with databases but most people I know only used it unbound.

The DataGrid is easy to work with and can be used unbound in the same
fashion as FlexGrid. Perhaps if you gave a little info on what your app
does we can help.

Lloyd Sheen

If you have a simple need to display then perhaps the ListView is what you
need. It has column headers and with a little coding you can get the row
and column that was clicked.

It is also simple to add column sorting and such. Lots of good examples on
web.

Depending on where your data is coming from this might be a simple approach
and users will be familar with the control from other windows apps.

Hope this helps.

Lloyd Sheen

May 3 '07 #4
Hi,

Loyd is certainly a version 1.x user, otherwise he had adviced you for sure
the DataGridView what has the same purpose as the flexgrid.

With the datagrid it is almost impossible to work with a datatable, with the
listview it is almost impossible to work with data while only the first
column is editable on a reasonable way, and than even troublefull.

Cor

" active" <ac**********@a-znet.comschreef in bericht
news:eF**************@TK2MSFTNGP03.phx.gbl...
>I simply want to display the grid of strings in the cells. And be able to
tell which cell a mouse clicked. No user editing. I'll look at DataGrid
unless you recommend something else.

Thanks
"Lloyd Sheen" <a@b.cwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>
" active" <ac**********@a-znet.comwrote in message
news:u9**************@TK2MSFTNGP02.phx.gbl...
>>>I need a control that displays a grid of rectangles.

That is, like a brick wall except the rectangles are lined up.

In VB6 I used such a control (may have been called FlexGrid but I'm not
sure.)

I did see the DataGrid control but that seems oriented to DB usage. It's
probably much more complex than what I need, but I'm not sure about
that!

Bottom line: is there a control that displays a multi-column array of
rectangles that can each contain text?
Thanks

Do you need to edit the values in the Grid, and by the way you could
think of new controls as the Grandchildren of FlexGrid. FlexGrid was
made to work with databases but most people I know only used it unbound.

The DataGrid is easy to work with and can be used unbound in the same
fashion as FlexGrid. Perhaps if you gave a little info on what your app
does we can help.

Lloyd Sheen


May 4 '07 #5
I don't know why I didn't think of ListView. I've used it before. Maybe
because I don't need column headers and all the cells need to be the same
size my need looks different than the typical ListView.

Thanks

"Lloyd Sheen" <a@b.cwrote in message
news:ex**************@TK2MSFTNGP06.phx.gbl...
>
" active" <ac**********@a-znet.comwrote in message
news:eF**************@TK2MSFTNGP03.phx.gbl...
>>I simply want to display the grid of strings in the cells. And be able to
tell which cell a mouse clicked. No user editing. I'll look at DataGrid
unless you recommend something else.

Thanks
"Lloyd Sheen" <a@b.cwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>>
" active" <ac**********@a-znet.comwrote in message
news:u9**************@TK2MSFTNGP02.phx.gbl...
I need a control that displays a grid of rectangles.

That is, like a brick wall except the rectangles are lined up.

In VB6 I used such a control (may have been called FlexGrid but I'm not
sure.)

I did see the DataGrid control but that seems oriented to DB usage.
It's probably much more complex than what I need, but I'm not sure
about that!

Bottom line: is there a control that displays a multi-column array of
rectangles that can each contain text?
Thanks
Do you need to edit the values in the Grid, and by the way you could
think of new controls as the Grandchildren of FlexGrid. FlexGrid was
made to work with databases but most people I know only used it unbound.

The DataGrid is easy to work with and can be used unbound in the same
fashion as FlexGrid. Perhaps if you gave a little info on what your app
does we can help.

Lloyd Sheen


If you have a simple need to display then perhaps the ListView is what you
need. It has column headers and with a little coding you can get the row
and column that was clicked.

It is also simple to add column sorting and such. Lots of good examples
on web.

Depending on where your data is coming from this might be a simple
approach and users will be familar with the control from other windows
apps.

Hope this helps.

Lloyd Sheen

May 4 '07 #6
Loyd mentioned DataGridView in his first post. I should have specified the
application better at the start. Maybe if I said: I need to display a table
of static text (not from a database) that would have helped.

Anyway, I'm trying to use a DataGridView but all the doc I can find relates
to displaying data from a database.

I need a simple example, like a 3-row, 3-column DataGridView with the row
and column number displayed in the text cells.

Thanks for replying

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi,

Loyd is certainly a version 1.x user, otherwise he had adviced you for
sure the DataGridView what has the same purpose as the flexgrid.

With the datagrid it is almost impossible to work with a datatable, with
the listview it is almost impossible to work with data while only the
first column is editable on a reasonable way, and than even troublefull.

Cor

" active" <ac**********@a-znet.comschreef in bericht
news:eF**************@TK2MSFTNGP03.phx.gbl...
>>I simply want to display the grid of strings in the cells. And be able to
tell which cell a mouse clicked. No user editing. I'll look at DataGrid
unless you recommend something else.

Thanks
"Lloyd Sheen" <a@b.cwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>>
" active" <ac**********@a-znet.comwrote in message
news:u9**************@TK2MSFTNGP02.phx.gbl...
I need a control that displays a grid of rectangles.

That is, like a brick wall except the rectangles are lined up.

In VB6 I used such a control (may have been called FlexGrid but I'm not
sure.)

I did see the DataGrid control but that seems oriented to DB usage.
It's probably much more complex than what I need, but I'm not sure
about that!

Bottom line: is there a control that displays a multi-column array of
rectangles that can each contain text?
Thanks
Do you need to edit the values in the Grid, and by the way you could
think of new controls as the Grandchildren of FlexGrid. FlexGrid was
made to work with databases but most people I know only used it unbound.

The DataGrid is easy to work with and can be used unbound in the same
fashion as FlexGrid. Perhaps if you gave a little info on what your app
does we can help.

Lloyd Sheen



May 4 '07 #7
I want to use a DataGridView if that is reasonable since I've never used it
before.
I should have specified the application better at the start.
I need to display a simple table of static text (not from a database).

I tried to figure out how to create the table.
There is many examples available but all for bound usage.

Thinking I could do it like it is done for a ListView.
That is, by adding a row and then adding cells to the row.
Later adding the text.
But I can't find out how to do that.

I think I could build an array objects (each object containing the strings
for a row) and bind that to the DataGridView. Is that the way I should do
it?

If not, I could use a simple example, like a 3-row, 3-column DataGridView
with the row and column number displayed in the text cells.

Thanks
>

The DataGrid is easy to work with and can be used unbound in the same
fashion as FlexGrid. Perhaps if you gave a little info on what your app
does we can help.

Lloyd Sheen

May 4 '07 #8

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi,

Loyd is certainly a version 1.x user, otherwise he had adviced you for
sure the DataGridView what has the same purpose as the flexgrid.

With the datagrid it is almost impossible to work with a datatable, with
the listview it is almost impossible to work with data while only the
first column is editable on a reasonable way, and than even troublefull.

Cor

" active" <ac**********@a-znet.comschreef in bericht
news:eF**************@TK2MSFTNGP03.phx.gbl...
>>I simply want to display the grid of strings in the cells. And be able to
tell which cell a mouse clicked. No user editing. I'll look at DataGrid
unless you recommend something else.

Thanks
"Lloyd Sheen" <a@b.cwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>>
" active" <ac**********@a-znet.comwrote in message
news:u9**************@TK2MSFTNGP02.phx.gbl...
I need a control that displays a grid of rectangles.

That is, like a brick wall except the rectangles are lined up.

In VB6 I used such a control (may have been called FlexGrid but I'm not
sure.)

I did see the DataGrid control but that seems oriented to DB usage.
It's probably much more complex than what I need, but I'm not sure
about that!

Bottom line: is there a control that displays a multi-column array of
rectangles that can each contain text?
Thanks
Do you need to edit the values in the Grid, and by the way you could
think of new controls as the Grandchildren of FlexGrid. FlexGrid was
made to work with databases but most people I know only used it unbound.

The DataGrid is easy to work with and can be used unbound in the same
fashion as FlexGrid. Perhaps if you gave a little info on what your app
does we can help.

Lloyd Sheen


Hey Cor,

I was always taught to ask before making an assumption. I am a V2 user.

Lloyd

May 4 '07 #9
I found an example in the docs that shows exactly what I need:
How to: Create an Unbound Windows Forms DataGridView Control

Thanks
May 4 '07 #10

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

Similar topics

12
by: MLH | last post by:
I have created two forms: frmBrowseNegsMainform and frmBrowseNegsSubform. I put a subform control on the first of these. The SourceObject property for the subform control is, of course,...
7
by: Scott Simonson | last post by:
Sorry if this posts twice. I can only assume that my previous post didn't because I attached a small image to it to show the error. I have had an application in MSAccess 2k for about year now...
2
by: Martin Baker | last post by:
I have an activeX control which I am calling from a C# program, this works fine. I now want to call the activeX control from a seperate thread, this works but is very slow. This is far too slow...
1
by: VM | last post by:
In my Windows application, I use the streamreader to display a txt file into multi-line textbox and /streamwriter to modify the txt file if the user decides to change the contents through the...
0
by: Eachus | last post by:
Hello, I’m trying to create a web custom control. I’ve worked in asp.net extensively, but this is the first time I’ve attempted a web custom control. As a test, I created a control exactly...
6
by: Ray Cassick \(Home\) | last post by:
I am looking for a control that displays simple HTML text (just basic tags, not active content needed). I know I can use the IE ActiveX control but really want to stay away from the headaches if...
3
by: pealy2 | last post by:
Sorry if this is in the wrong group, I've searched long & hard without finding anything even slightly useful. (recommendations for a more relevant group gratefuly received) I need to change the...
4
by: Sevu | last post by:
I am working with ASP.NET.I am using ReportViwer Control to show my report.I like to add dropdownlist with in the reportviewer control. ( Not top to the control some thing like that).I need to...
0
by: Shane Jones | last post by:
I began my .Net training with VS .Net 2000 (version 1.0) -- on the toolbar there is a multi-tabbed control (which allows you to place differing content on each tab, and display content associated...
6
by: Leon | last post by:
Hi there, I am trying to use the WebBrowser Control in a form which is being started in an own thread by the main form of my application. Unfortunately I am always getting an error in...
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
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.