473,403 Members | 2,359 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,403 software developers and data experts.

Displaying Strings in a DataGrid Control

I'm trying to display a string in a datagrid control and
can't workout how to do it. In VB6 i used a MSFlexGrid
ctrl.

flxProjNum.TextMatrix(1, 0) = "HELLO"

It seems the the datagrid control is supposed to be bound
to a datasource and display that.

Is there a way to do what i did in VB6? I am using an
Informix database with openlink ODBC drivers(so no data
adapters and sql server answers please!

Thanks

Duncan

Nov 17 '05 #1
3 1880
So from the lack of response can i assume that you cannot
do what i proposed!

Is it the lack of sql server thats the problem?
-----Original Message-----
I'm trying to display a string in a datagrid control and
can't workout how to do it. In VB6 i used a MSFlexGrid
ctrl.

flxProjNum.TextMatrix(1, 0) = "HELLO"

It seems the the datagrid control is supposed to be bound
to a datasource and display that.

Is there a way to do what i did in VB6? I am using an
Informix database with openlink ODBC drivers(so no data
adapters and sql server answers please!

Thanks

Duncan

.

Nov 17 '05 #2
Sorry if i wasn't clear i was just trying to be brief as
possible with the description of my problem.

So...

In vb6 i have used the flxgrid control to display simple
strings ie. set the flexgrid called flxProjNum
textmatrix property to Hello at row one, column zero to
equal "HELLO"

flxProjNum.TextMatrix(0, 0) = "HELLO"
flxProjNum.TextMatrix(1, 0) = "Goodbye"

Hello ! !
--------------------------
Goodbye! !
--------------------------
! !

I cannot find a way to do this with the asp.net datagrid
control. It seems to need a dataset object containing your
query results. I cannot do this because our ODBC
connection and database don't seem to be compatible with
the datagrid.

What i could do was just set the appropriate col and row
of the flxgrid the grid to equal the raw values from the
query. ie display a colum of ordernumbers

rs = adodb an recordset

do while not rs.eof

flxProjNum.TextMatrix(i, 0) = rs!ordernumber
rs.movenext
i = i +1
loop

Hope this helps to explain my problem better.
Duncan
Nov 17 '05 #3
Don
Hi Duncan,

As far as I know, the grid has to be bound. If you're interested, our
Spread for Web Forms product will do what you need:

fpSpread1.Sheets(0).Cells(0,0).Text = "Hello"
fpSpread1.Sheets(0).Cells(1,0).Text = "Goodbye"

It can be used in bound mode or in unbound mode - no databinding
needed. Here's the link for more info, online demos, and video
tutorials:
http://www.fpoint.com/netproducts/spreadweb/spread.html

- Donald

In vb6 i have used the flxgrid control to display simple
strings ie. set the flexgrid called flxProjNum
textmatrix property to Hello at row one, column zero to
equal "HELLO"

flxProjNum.TextMatrix(0, 0) = "HELLO"
flxProjNum.TextMatrix(1, 0) = "Goodbye"

Nov 17 '05 #4

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

Similar topics

7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
12
by: Charles Astwood | last post by:
Hi, just starting out working my way round C Sharp and aspx. Used to write all my sites in asp and just need a few pointers in how to display data. I have made a connection to my SQL2000...
3
by: vinayak | last post by:
Hi I am displaying data in Datagrid in ASP.NET with Edit/Update functionality for each row. On the same page I have 2 Button controls which submits the request to server. These button controls...
4
by: Tim T | last post by:
Hi, I have a stored procedure executing a search and an asp.net page displaying the results in a datagrid. The datagrid has paging on it, I am using Visual Studio.NET and can't see any option...
0
by: Nikhil Patel | last post by:
Hi all. I have written a custom DataGrid control which inherits from ASP.Net DataGrid control. When I drop this control on an ASP.Net form, it does not display the grid properly. It says error...
0
by: optimizeit | last post by:
What I am attempting to do is import an Excel Workbook and display the worksheets in a datagrid dynamically. I am very close to getting this to work. I have to this point successfully imported a...
2
by: Olaf Rabbachin | last post by:
Hi folks, I'd like to notify the user that rows within a datagrid require user-interaction/processing. The RowHeader is visible and wide enough so that the exclamation-mark icon as i.e. the...
1
by: .Net Sports | last post by:
the below itemdatabound function works , displays all the grand totals in the footer control of the datagrid: private void dglvboard_ItemDataBound(object sender,...
0
by: saravanaVijayakumar | last post by:
I'm new to xml .. I had created a application such a way that I have to display the xml file in treeview control in C#.Net Application ... If I select the particular Node it should display the...
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: 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
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
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:
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...
0
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,...
0
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...

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.