473,470 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Remove a column from a Dataset

I have a dataset that I want to remove the first column. Can I do this
without "Select"ing again? If so, how.

Thanks....
Nov 21 '05 #1
2 19275
Bruce,

A dataset has no columns.

A datatable has that and removing a column from the first of that is
Datatable.datatable(0).columns.remove(0)

I hope this helps?

Cor
Nov 21 '05 #2

"Cor Ligthert" <no************@planet.nl> wrote in message
news:OK**************@TK2MSFTNGP11.phx.gbl...
Bruce,

A dataset has no columns.

A datatable has that and removing a column from the first of that is
Datatable.datatable(0).columns.remove(0)

I hope this helps?

Cor


Cor:

Works like a charm.. Thanks......

Bruce
Nov 21 '05 #3

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

Similar topics

5
by: perspolis | last post by:
hi everyone I used a column expression like "UnitPrice*Quantity" for a cloumn named Total. but when I want to update my dataset by SqlDataAdopter, it gives me error. The column Total is just for...
0
by: a | last post by:
I've read and split a delimited text file into a dataset. It looks fine in a datagrid (5 columns and 5,000 rows), but I've been trying, without success, to then insert the resulting dataset called...
1
by: Hrvoje Voda | last post by:
How to remove data from dataSet using store procedure ? Hrcko
1
by: Bruce W.1 | last post by:
I've got a dataset with a couple of table columns that I don't want to show in a DataGrid. But I want to leave the columns in the dataset. I passed the DataSet thru a DataView, but I can't...
1
by: Shapper | last post by:
Hello, I have a dataset which returns only one row. I need to make an ASP:Image ImageURL equal to the dataset's imageURL field. I tried these two options: iphoto.ImageURL =...
2
by: pushpendra vats | last post by:
Hi!!, I have created a dataadapter and datasdet through code .On button i have added two records in dataset and called acceptchanges method. on second button i am inserting the records in...
6
by: Aaron Smith | last post by:
Ok. I have a dataset that has multiple tables in it. In one of the child tables, I have a column that I added to the DataSet (Not in the DataSource). This column does not need to be stored in the...
0
by: xzzy | last post by:
Dotnet v1.1 The following code creates a dataset with - the correct number of rows - the information in COL1 and COL2 are correct - but the dataset only has 2 columns, COL1 and COL2 What...
4
by: le007 | last post by:
Hey all - just wondering does anyone know how to remove and/or change the column colour or borders? Basically my sketchy site: http://homepage.eircom.net/~egoman/mysite2.html has 1 main table...
2
by: Magnus Bergh | last post by:
I have a solution which contains multiple projects (different applications). Every project use the same typed dataset (and also a few other shared code files). I tried to remove the dataset.xsd...
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
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
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...
1
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...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.