473,624 Members | 2,245 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with Unusual Datagrid Usage

I'm looking to use a datagrid in an odd way and not making a lot of
progress. I want to read in a text file and then allow a user to
arbitraily divide the data into columns. I thought I might be able to
do this with a datagrid by capturing mouse events and then
adding/dropping/modifying columns and then redisplaying the data.

So far, I'm reading the data from a text file into a data store with
an OleDbDataAdapte r and then setting the DataSource property of the
datagrid to the datastore. That displays the data nicely, but after
that I'm stuck. Several of the examples I've found for manipulating
datagrids assume the datasource is a datatable and don't seem to work
for me.

I'm not looking for detailed solutions, but just a few pointers on how
to get started. I'm open to any solution, even it it does not use a
datagrid.

Thanks much for any assistance,
Gene in North Carolina
Nov 20 '05 #1
1 1551
if you think its possible/easy by using a data table, why not use one ?

create a data table with one column, and read each line of text into a data
row one column long...

when you need to add a column (split the text), create a new data table
with the additional column, read each data row from the old column and
split it into the appropriate number of columns for the new table. then
set the datagrid.source to your new data table.

Does this seem plausible ?

--------------------
From: gw******@hotmai l.com (Gene Hubert)
Newsgroups: microsoft.publi c.dotnet.langua ges.vb
Subject: Help with Unusual Datagrid Usage
Date: 25 Sep 2003 05:14:06 -0700
Organization : http://groups.google.com/
Lines: 19
Message-ID: <7e************ **************@ posting.google. com>
NNTP-Posting-Host: 198.85.98.225
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google. com 1064492047 3055 127.0.0.1 (25 Sep 2003 12:14:07 GMT)X-Complaints-To: gr**********@go ogle.com
NNTP-Posting-Date: 25 Sep 2003 12:14:07 GMT
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new s-out.cwix.com!ne wsfeed.cwix.co
m!news.maxwell. syr.edu!sn-xit-03!sn-xit-06!sn-xit-09!supernews.co m!postnews1
..google.com!no t-for-mailXref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:141083
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb

I'm looking to use a datagrid in an odd way and not making a lot of
progress. I want to read in a text file and then allow a user to
arbitraily divide the data into columns. I thought I might be able to
do this with a datagrid by capturing mouse events and then
adding/dropping/modifying columns and then redisplaying the data.

So far, I'm reading the data from a text file into a data store with
an OleDbDataAdapte r and then setting the DataSource property of the
datagrid to the datastore. That displays the data nicely, but after
that I'm stuck. Several of the examples I've found for manipulating
datagrids assume the datasource is a datatable and don't seem to work
for me.

I'm not looking for detailed solutions, but just a few pointers on how
to get started. I'm open to any solution, even it it does not use a
datagrid.

Thanks much for any assistance,
Gene in North Carolina


Matt Evans
--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.

Nov 20 '05 #2

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

Similar topics

19
14829
by: Thue Tuxen Sørensen | last post by:
Hi everybody ! I´m maintaining a large intranet (approx 10000 concurrent users) running on one IIS box and one DB box with sqlserver 2000. Currently there is 2,5 GB Ram, 1 1400 mhz cpu and 2 scsi disks installed on the db box. Sqlserver is set to use max 1,4 GB RAM, and the sqlserver does not seem to be using it all.
4
1837
by: Pete Davis | last post by:
I'm using a web form DataGrid. When I populate the grid, I set the DataSource to a collection and then call DataGrid.DataBind(). When looking at the DataGrid in the debugger, the DataSource is set properly. When I then get to the SelectedIndexChanged() event, the DataSource is set to null. I have both the page and the datagrid set with enableViewState set to true. The Items collection is valid and the Cells contain the proper data. What am...
11
5914
by: Junkguy | last post by:
I need some help programmatically causing a row in a DataGrid to "flush" its contents to its bound data (in Visual Studio 6 using Windows Forms with C#). My issue is I want to send an update to a database from a menu command while the user is editing a DataGrid. This is unusual in regard to examples and normal practice in that the cell of the DataGrid still has the focus. In all examples I can find, the user normally presses a button on...
4
1419
by: hmedinapy | last post by:
has anyone had a issue like this... My application (VB .net) starts using about 20% from cpu, and slowly increase the cpu usage to 100%. I need to know any factor that hs influence on cpu usage... My app, needs to show rows in a datagrid, and refresh this data throught a timing, and I use the System.Windows.Forms.Timer object. I suspect threads are not been deallocated or disposed after I kill them explicity.. Actually I
2
1225
by: William A. Sempf | last post by:
Hi, everyone. Posting this in the IIS group, because I don't think it is an ASP.NET question, crossposting because I am not sure. Apologizing in advance. I have a page with a datagrid that binds to a dataset that is generated from an Oracle database. If I trace the page load, and run ACT, the trace shows that the dataset load takes 9 seconds, and ACT says the page returns in 10.6 seconds. So I cached the dataset. On the first page...
2
2054
by: Daniel | last post by:
I'm new to .Net and all of its abilities so I hope this makes sense. Basically I'm confused on when is the appropriate time to use web forms controls vs. regular HTML. For example in ASP (non-.Net) if I wanted to fill a list it may look something like this: -------START CODE <%
4
2263
by: steroche | last post by:
I would REALLY appreciate help please please please! Im sure it is probably blindingly obvious to most of you but I am totally in the dark here!I am lost - i thought i had finally figured out this dataSet updating lark when i realised that i think i am right back at square 1!!! Here's my scenario - i have a SQLDB and i retrieve all my data from that into a dataset and display this to a datagrid(WebForm). I have got this grid sorted and...
2
1180
by: Neo Geshel | last post by:
Greetings! I have a rather unusual request about a rather basic need. I need to be able to bind data to a page, but WITHOUT using a Repeater, DataGrid or DataList. Why? Well, I have some formatting and JavaScript issues that require each and every form element's ID to remain unchanged. Unfortunately, whenever
10
1418
by: sheldonlg | last post by:
I got an unusual request. One customer wants a password/access made available to a user that is valid for only, say, ten minutes. I know that I can enforce this by having a revalidation of the password every time the user changes a page. This, though, seems like a a lot of overhead in having to make a db call every time a page is changed. I also thought about setting a timer for ten minutes, and on firing of that timer unset a session...
0
8233
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
8170
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
8619
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...
1
8334
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8474
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
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.