PC Review


Reply
Thread Tools Rate Thread

Create DataTable From Existing DataTable

 
 
Gimen
Guest
Posts: n/a
 
      14th Jan 2004
i created a SataSet that contain several DataTables,
i need to create some more DataTables and DataVies,
the problem is that each of them should contain another
DataColumns, i eant to select the columns from the
existing tables not only the rows.
sample:
one of the datatables in the dataset contain those
DataColumns: firstName, lastName, address,phone,fax and
mobile,
i want to create DataView that carry all the rows that the
last name begin with 'A' , but the columns needed are only
the last name and first name.
 
Reply With Quote
 
 
 
 
Miha Markic
Guest
Posts: n/a
 
      14th Jan 2004
Hi Gimen,

You won't be able to limit the columns that DataView shows.
Rather don't display them at UI level.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

"Gimen" <(E-Mail Removed)> wrote in message
news:075201c3da86$3016a890$(E-Mail Removed)...
> i created a SataSet that contain several DataTables,
> i need to create some more DataTables and DataVies,
> the problem is that each of them should contain another
> DataColumns, i eant to select the columns from the
> existing tables not only the rows.
> sample:
> one of the datatables in the dataset contain those
> DataColumns: firstName, lastName, address,phone,fax and
> mobile,
> i want to create DataView that carry all the rows that the
> last name begin with 'A' , but the columns needed are only
> the last name and first name.



 
Reply With Quote
 
Gimen
Guest
Posts: n/a
 
      14th Jan 2004
that what i did for now, but the source datatable is very
heavy and i want to save memory and trafic by sending only
the needed columns.
maybe working full connected is preferred in that
situation?


>-----Original Message-----
>Hi Gimen,
>
>You won't be able to limit the columns that DataView

shows.
>Rather don't display them at UI level.
>
>--
>Miha Markic - RightHand .NET consulting & software

development
>miha at rthand com
>www.rthand.com
>
>"Gimen" <(E-Mail Removed)> wrote in message
>news:075201c3da86$3016a890$(E-Mail Removed)...
>> i created a SataSet that contain several DataTables,
>> i need to create some more DataTables and DataVies,
>> the problem is that each of them should contain another
>> DataColumns, i eant to select the columns from the
>> existing tables not only the rows.
>> sample:
>> one of the datatables in the dataset contain those
>> DataColumns: firstName, lastName, address,phone,fax and
>> mobile,
>> i want to create DataView that carry all the rows that

the
>> last name begin with 'A' , but the columns needed are

only
>> the last name and first name.

>
>
>.
>

 
Reply With Quote
 
Miha Markic
Guest
Posts: n/a
 
      14th Jan 2004
Hi Gimen,

If the traffic is the problem, why don't you select just the columns you are
interested in?

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

"Gimen" <(E-Mail Removed)> wrote in message
news:09e901c3da89$6deba3c0$(E-Mail Removed)...
> that what i did for now, but the source datatable is very
> heavy and i want to save memory and trafic by sending only
> the needed columns.
> maybe working full connected is preferred in that
> situation?
>
>
> >-----Original Message-----
> >Hi Gimen,
> >
> >You won't be able to limit the columns that DataView

> shows.
> >Rather don't display them at UI level.
> >
> >--
> >Miha Markic - RightHand .NET consulting & software

> development
> >miha at rthand com
> >www.rthand.com
> >
> >"Gimen" <(E-Mail Removed)> wrote in message
> >news:075201c3da86$3016a890$(E-Mail Removed)...
> >> i created a SataSet that contain several DataTables,
> >> i need to create some more DataTables and DataVies,
> >> the problem is that each of them should contain another
> >> DataColumns, i eant to select the columns from the
> >> existing tables not only the rows.
> >> sample:
> >> one of the datatables in the dataset contain those
> >> DataColumns: firstName, lastName, address,phone,fax and
> >> mobile,
> >> i want to create DataView that carry all the rows that

> the
> >> last name begin with 'A' , but the columns needed are

> only
> >> the last name and first name.

> >
> >
> >.
> >



 
Reply With Quote
 
Gimen
Guest
Posts: n/a
 
      14th Jan 2004
thats i'm trying to do,

>-----Original Message-----
>Hi Gimen,
>
>If the traffic is the problem, why don't you select just

the columns you are
>interested in?
>
>--
>Miha Markic - RightHand .NET consulting & software

development
>miha at rthand com
>www.rthand.com
>
>"Gimen" <(E-Mail Removed)> wrote in message
>news:09e901c3da89$6deba3c0$(E-Mail Removed)...
>> that what i did for now, but the source datatable is

very
>> heavy and i want to save memory and trafic by sending

only
>> the needed columns.
>> maybe working full connected is preferred in that
>> situation?
>>
>>
>> >-----Original Message-----
>> >Hi Gimen,
>> >
>> >You won't be able to limit the columns that DataView

>> shows.
>> >Rather don't display them at UI level.
>> >
>> >--
>> >Miha Markic - RightHand .NET consulting & software

>> development
>> >miha at rthand com
>> >www.rthand.com
>> >
>> >"Gimen" <(E-Mail Removed)> wrote in message
>> >news:075201c3da86$3016a890$(E-Mail Removed)...
>> >> i created a SataSet that contain several DataTables,
>> >> i need to create some more DataTables and DataVies,
>> >> the problem is that each of them should contain

another
>> >> DataColumns, i eant to select the columns from the
>> >> existing tables not only the rows.
>> >> sample:
>> >> one of the datatables in the dataset contain those
>> >> DataColumns: firstName, lastName, address,phone,fax

and
>> >> mobile,
>> >> i want to create DataView that carry all the rows

that
>> the
>> >> last name begin with 'A' , but the columns needed are

>> only
>> >> the last name and first name.
>> >
>> >
>> >.
>> >

>
>
>.
>

 
Reply With Quote
 
Miha Markic
Guest
Posts: n/a
 
      14th Jan 2004
Hmmm..
Instead of "SELECT * FROM Table" you should use "SELECT Column1, Column2
FROM Table".
Isn't this a solution?

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

"Gimen" <(E-Mail Removed)> wrote in message
news:0cab01c3da9f$165d89f0$(E-Mail Removed)...
> thats i'm trying to do,
>
> >-----Original Message-----
> >Hi Gimen,
> >
> >If the traffic is the problem, why don't you select just

> the columns you are
> >interested in?
> >
> >--
> >Miha Markic - RightHand .NET consulting & software

> development
> >miha at rthand com
> >www.rthand.com
> >
> >"Gimen" <(E-Mail Removed)> wrote in message
> >news:09e901c3da89$6deba3c0$(E-Mail Removed)...
> >> that what i did for now, but the source datatable is

> very
> >> heavy and i want to save memory and trafic by sending

> only
> >> the needed columns.
> >> maybe working full connected is preferred in that
> >> situation?
> >>
> >>
> >> >-----Original Message-----
> >> >Hi Gimen,
> >> >
> >> >You won't be able to limit the columns that DataView
> >> shows.
> >> >Rather don't display them at UI level.
> >> >
> >> >--
> >> >Miha Markic - RightHand .NET consulting & software
> >> development
> >> >miha at rthand com
> >> >www.rthand.com
> >> >
> >> >"Gimen" <(E-Mail Removed)> wrote in message
> >> >news:075201c3da86$3016a890$(E-Mail Removed)...
> >> >> i created a SataSet that contain several DataTables,
> >> >> i need to create some more DataTables and DataVies,
> >> >> the problem is that each of them should contain

> another
> >> >> DataColumns, i eant to select the columns from the
> >> >> existing tables not only the rows.
> >> >> sample:
> >> >> one of the datatables in the dataset contain those
> >> >> DataColumns: firstName, lastName, address,phone,fax

> and
> >> >> mobile,
> >> >> i want to create DataView that carry all the rows

> that
> >> the
> >> >> last name begin with 'A' , but the columns needed are
> >> only
> >> >> the last name and first name.
> >> >
> >> >
> >> >.
> >> >

> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
create new datatable from existing datatable BostonNole Microsoft VB .NET 0 13th Sep 2006 10:34 PM
How to Insert New Row Into Existing DataTable While Looping DataTable Kelvin Microsoft C# .NET 4 8th Dec 2004 09:01 PM
Creating a Queried DataTable From an Existing DataTable Lee Ottaway Microsoft ADO .NET 1 22nd Jul 2004 09:30 AM
Populate a DataTable (with Aggregation) from an existing DataTable =?Utf-8?B?RnJhbmNpc2Nv?= Microsoft ADO .NET 1 21st Feb 2004 11:42 AM
Populate a DataTable (with Aggregation) from an existing DataTable =?Utf-8?B?RGlhYmxv?= Microsoft ADO .NET 1 26th Jan 2004 08:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:42 AM.