473,757 Members | 6,899 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1664

" active" <ac********** @a-znet.comwrote in message
news:u9******** ******@TK2MSFTN GP02.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******** ********@TK2MSF TNGP02.phx.gbl. ..
>
" active" <ac********** @a-znet.comwrote in message
news:u9******** ******@TK2MSFTN GP02.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******** ******@TK2MSFTN GP03.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******** ********@TK2MSF TNGP02.phx.gbl. ..
>>
" active" <ac********** @a-znet.comwrote in message
news:u9******* *******@TK2MSFT NGP02.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******** ******@TK2MSFTN GP03.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******** ********@TK2MSF TNGP02.phx.gbl. ..
>>
" active" <ac********** @a-znet.comwrote in message
news:u9******* *******@TK2MSFT NGP02.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******** ******@TK2MSFTN GP06.phx.gbl...
>
" active" <ac********** @a-znet.comwrote in message
news:eF******** ******@TK2MSFTN GP03.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******* *********@TK2MS FTNGP02.phx.gbl ...
>>>
" active" <ac********** @a-znet.comwrote in message
news:u9****** ********@TK2MSF TNGP02.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******** ********@TK2MSF TNGP03.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******** ******@TK2MSFTN GP03.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******* *********@TK2MS FTNGP02.phx.gbl ...
>>>
" active" <ac********** @a-znet.comwrote in message
news:u9****** ********@TK2MSF TNGP02.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******** ********@TK2MSF TNGP03.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******** ******@TK2MSFTN GP03.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******* *********@TK2MS FTNGP02.phx.gbl ...
>>>
" active" <ac********** @a-znet.comwrote in message
news:u9****** ********@TK2MSF TNGP02.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
19013
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, frmBrowseNegsSubform. I would like to perform an ascending or descending sort on any of the 7 columns shown in datasheet view in the subform control. I've been unsuccessful. Is there something tricky about sorting in subform controls?
7
2684
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 without issues until today. My users were using it in W98 without issue, but recently moved to WindowsXP and now are getting an error. It is with the standard image control while loading a TIF image. Loading these TIFs in W98 works but not in...
2
4664
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 to work properly, can anyone suggest how I can fix this? The program is not doing anything else while the thread is running, the idea is that the thread will be running continously in a loop to animate the activeX control. However it runs slow...
1
1389
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 textbox control. Is there an easier way of doing this? Is there some control that automatically displays a file and modifies it when the user modifies it? Thanks.
0
1435
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 as described in one of the walkthroughs (except for a couple of grammatical changes that the vs.net IDE insisted on). The one thing I did different was to compile it via the IDE rather than the command line. But it doesn’t work. In design...
6
1314
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 I can. There has to be some type of lite control out there that can handle this. I am hacked off that the RTF control will not read HTML. RTF tags are WAY too much work for what I need to do. --
3
5025
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 settings for the default web service user account so that sounds go through a sound card rather than the on-board sound. I can do this simply when I'm logged in to my own user account by going through control panel. If I can't log on as the Web...
4
4475
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 place dropdown near to Export link ( Excel and PDF Export).Is it possible to add at the dropdown list with in report viewer control?. I found the property as ReportViewer.Controls.Add.But its not working.Please help me. Regards, S.Sevugan.
0
1061
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 with each seperate tab) -- I'm NEW to Visual Studio .Net 2005, and I can't seem to locate this multi-tabbed control on the toolbar. Does anyone know if this is a standard control for 2005, and will the Multi-View control offer the same...
6
13713
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 InitializeComponents stating that the ActiveX-Control 8856f961-340a-11d0-a96b-00c04fd705a2 cannot be initiated because the current thread isn't a single-thread apartment. Is there way of using the webbrowser control in multi threaded applications in .Net...
0
9489
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9298
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10072
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9906
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8737
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7286
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2698
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.