Showing posts with label provide. Show all posts
Showing posts with label provide. Show all posts

Saturday, March 31, 2012

Table to Grid

How to bind a grid using table?
I've a table and I want to see that data in a grid for sorting and
pagination. Please provide an example.

Thanks,
XDi think you are talking about the datatable,

you must fill a dataset first, then call this,

Datagrid1.Datasource = ds.Tables(0)
Datagrid1.Databind();

This will show the data in your datagrid, also make sure that you turn on
the check in autogenerate columns in Datagrid Property Builder

"SK" wrote:

Quote:

Originally Posted by

How to bind a grid using table?
I've a table and I want to see that data in a grid for sorting and
pagination. Please provide an example.
>
Thanks,
XD
>
>
>


No it is not datatable. It is normal web.UI.webcontrols.Table
I want to view the data in gridview1 than a table.

- Thanks

"Murtaza" <Murtaza@.discussions.microsoft.comwrote in message
news:9C7365A4-7AC3-497D-B383-02D9F700F1C9@.microsoft.com...

Quote:

Originally Posted by

>i think you are talking about the datatable,
>
you must fill a dataset first, then call this,
>
Datagrid1.Datasource = ds.Tables(0)
Datagrid1.Databind();
>
This will show the data in your datagrid, also make sure that you turn on
the check in autogenerate columns in Datagrid Property Builder
>
"SK" wrote:
>

Quote:

Originally Posted by

>How to bind a grid using table?
>I've a table and I want to see that data in a grid for sorting and
>pagination. Please provide an example.
>>
>Thanks,
>XD
>>
>>
>>


Then again you have to follow same approach, construct a datatable, Iterate
through every row of ur HTML table n fill that Datatable then bind that
Datatable to ur gridview...

"XD" wrote:

Quote:

Originally Posted by

No it is not datatable. It is normal web.UI.webcontrols.Table
I want to view the data in gridview1 than a table.
>
- Thanks
>
"Murtaza" <Murtaza@.discussions.microsoft.comwrote in message
news:9C7365A4-7AC3-497D-B383-02D9F700F1C9@.microsoft.com...

Quote:

Originally Posted by

i think you are talking about the datatable,

you must fill a dataset first, then call this,

Datagrid1.Datasource = ds.Tables(0)
Datagrid1.Databind();

This will show the data in your datagrid, also make sure that you turn on
the check in autogenerate columns in Datagrid Property Builder

"SK" wrote:

Quote:

Originally Posted by

How to bind a grid using table?
I've a table and I want to see that data in a grid for sorting and
pagination. Please provide an example.
>
Thanks,
XD
>
>
>


>
>
>

TableAdapter: How do I create one which inserts values from a form into two tables?

I am creating a simple booking system. The system requires the users
to provide information regarding themselves and also the booking
detail. I want to send the data into two tables. One, the personalinfo
table and another bookinginfo. The bookinginfo, also has a column for
personalID which links it to the personalInfo table. How can I do this
with eiter an ASP button control use a table adapter to do it.
Sorry if this sounds trivial but I am really new to ASP and SQL.
RegardsYou'd need to simply write the data out to the table. Have a look at the
connection objects in .NET there is actually a lot of code that already does
what you want posted all over the web.
Regards,
Alvin Bruney
---
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"Fendi Baba" <effendi@.epitome.com.sg> wrote in message
news:1171175411.943113.134530@.h3g2000cwc.googlegroups.com...
>I am creating a simple booking system. The system requires the users
> to provide information regarding themselves and also the booking
> detail. I want to send the data into two tables. One, the personalinfo
> table and another bookinginfo. The bookinginfo, also has a column for
> personalID which links it to the personalInfo table. How can I do this
> with eiter an ASP button control use a table adapter to do it.
> Sorry if this sounds trivial but I am really new to ASP and SQL.
> Regards
>

TableAdapter: How do I create one which inserts values from a form into two tables?

I am creating a simple booking system. The system requires the users
to provide information regarding themselves and also the booking
detail. I want to send the data into two tables. One, the personalinfo
table and another bookinginfo. The bookinginfo, also has a column for
personalID which links it to the personalInfo table. How can I do this
with eiter an ASP button control use a table adapter to do it.

Sorry if this sounds trivial but I am really new to ASP and SQL.

RegardsYou'd need to simply write the data out to the table. Have a look at the
connection objects in .NET there is actually a lot of code that already does
what you want posted all over the web.

--
Regards,
Alvin Bruney
----------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley

"Fendi Baba" <effendi@.epitome.com.sgwrote in message
news:1171175411.943113.134530@.h3g2000cwc.googlegro ups.com...

Quote:

Originally Posted by

>I am creating a simple booking system. The system requires the users
to provide information regarding themselves and also the booking
detail. I want to send the data into two tables. One, the personalinfo
table and another bookinginfo. The bookinginfo, also has a column for
personalID which links it to the personalInfo table. How can I do this
with eiter an ASP button control use a table adapter to do it.
>
Sorry if this sounds trivial but I am really new to ASP and SQL.
>
Regards
>

Monday, March 26, 2012

Tablet PC

Could someone please provide links/tutorials on programmming for tablet pc?
Thanks.Hi,

I don't code for tablet pc's but I guess this will be a good starting place:Mobile and embedded application development center.

Grz, Kris.
I appreciate very much you point me to the right direction. Now my next question is: where can I download the Microsoft Tablet PC API DLL? A former link for that has been moved and the new link is invisible.
Thanks.

Saturday, March 24, 2012

TabStrip control help

Can anyone point me in the right direction here? I want to provide a tab
strip of the alphabet "A - Z". I have a stored procedure to look up company
records in an SQL 2000 database. My vision is to have a datagrid on each
tab, and when the user clicks the tab, it populates the datagrid with
company records corresponding to the letter clicked. I basically would want
the tabs blank, and when the user clicks a letter, it will run a stored
procedure passing the tab letter as a parameter and the datagrid on that tab
will be populated by the results. Can anyone point me in the right
direction?

Thanks All,
ChrisThough the Windows applications have it, ASP.NET does not come with a tab
strip control. There is a microsoft-provided set of web controls called the
"IE Webcontrols", but they are unsupported by Microsoft. However, in a way
that's good news because you can download them complete with source code.
I've used them successfully. I haven't had to download them in awhile, but
I am sure you could find them with google.

"Chris Kettenbach" <info@.piasd.net> wrote in message
news:noqdndmik57Wx-ffRVn-2w@.giganews.com...
> Can anyone point me in the right direction here? I want to provide a tab
> strip of the alphabet "A - Z". I have a stored procedure to look up
> company records in an SQL 2000 database. My vision is to have a datagrid
> on each tab, and when the user clicks the tab, it populates the datagrid
> with company records corresponding to the letter clicked. I basically
> would want the tabs blank, and when the user clicks a letter, it will run
> a stored procedure passing the tab letter as a parameter and the datagrid
> on that tab will be populated by the results. Can anyone point me in the
> right direction?
> Thanks All,
> Chris

TabStrip control help

Can anyone point me in the right direction here? I want to provide a tab
strip of the alphabet "A - Z". I have a stored procedure to look up company
records in an SQL 2000 database. My vision is to have a datagrid on each
tab, and when the user clicks the tab, it populates the datagrid with
company records corresponding to the letter clicked. I basically would want
the tabs blank, and when the user clicks a letter, it will run a stored
procedure passing the tab letter as a parameter and the datagrid on that tab
will be populated by the results. Can anyone point me in the right
direction?
Thanks All,
ChrisThough the Windows applications have it, ASP.NET does not come with a tab
strip control. There is a microsoft-provided set of web controls called the
"IE Webcontrols", but they are unsupported by Microsoft. However, in a way
that's good news because you can download them complete with source code.
I've used them successfully. I haven't had to download them in awhile, but
I am sure you could find them with google.
"Chris Kettenbach" <info@.piasd.net> wrote in message
news:noqdndmik57Wx-ffRVn-2w@.giganews.com...
> Can anyone point me in the right direction here? I want to provide a tab
> strip of the alphabet "A - Z". I have a stored procedure to look up
> company records in an SQL 2000 database. My vision is to have a datagrid
> on each tab, and when the user clicks the tab, it populates the datagrid
> with company records corresponding to the letter clicked. I basically
> would want the tabs blank, and when the user clicks a letter, it will run
> a stored procedure passing the tab letter as a parameter and the datagrid
> on that tab will be populated by the results. Can anyone point me in the
> right direction?
> Thanks All,
> Chris
>