Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > dynamically add hyperlinks and buttons to a datagrid

Reply
Thread Tools

dynamically add hyperlinks and buttons to a datagrid

 
 
Richard Jonker
Guest
Posts: n/a
 
      10-02-2006
Hi,

I'm developing a webpage with a datagrid. The data is retrieved from a
database and via a dataset dynamically binded to the datagrid. So, the
fields from the query are defining the displayed columns.

How can I add special columns like buttons and hyperlinks dynamically to the
columns? And how to add events?
When using MS Studio Developer you can add these columns via the property
builder. In that case the first colums contains the buttons, I want
them in the last columns.

Any ideas ?

Many thanks in advance

Richard



 
Reply With Quote
 
 
 
 
Richard Jonker
Guest
Posts: n/a
 
      10-02-2006
Ok, I just figured out (after 3 days) to use the EditCommandColumn. I works
really fine. But how can I specify that it should be in the last columns
instead of the first columns?


Richard


"Richard Jonker" <> schreef in bericht
news:45215220$0$2021$. ..
> Hi,
>
> I'm developing a webpage with a datagrid. The data is retrieved from a
> database and via a dataset dynamically binded to the datagrid. So, the
> fields from the query are defining the displayed columns.
>
> How can I add special columns like buttons and hyperlinks dynamically to
> the
> columns? And how to add events?
> When using MS Studio Developer you can add these columns via the property
> builder. In that case the first colums contains the buttons, I want
> them in the last columns.
>
> Any ideas ?
>
> Many thanks in advance
>
> Richard
>
>
>



 
Reply With Quote
 
 
 
 
Niraj Ranka
Guest
Posts: n/a
 
      10-03-2006
Hello,

Just set the sequence of columns in datagrid.

Also u can use template columns too.

Regards--
Niraj Ranka
http://dotnetpub.blogspot.com/
"Richard Jonker" <> wrote in message
news:45218827$0$2030$. ..
> Ok, I just figured out (after 3 days) to use the EditCommandColumn. I

works
> really fine. But how can I specify that it should be in the last columns
> instead of the first columns?
>
>
> Richard
>
>
> "Richard Jonker" <> schreef in bericht
> news:45215220$0$2021$. ..
> > Hi,
> >
> > I'm developing a webpage with a datagrid. The data is retrieved from a
> > database and via a dataset dynamically binded to the datagrid. So, the
> > fields from the query are defining the displayed columns.
> >
> > How can I add special columns like buttons and hyperlinks dynamically to
> > the
> > columns? And how to add events?
> > When using MS Studio Developer you can add these columns via the

property
> > builder. In that case the first colums contains the buttons, I want
> > them in the last columns.
> >
> > Any ideas ?
> >
> > Many thanks in advance
> >
> > Richard
> >
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
User name and password to activate buttons and hyperlinks on website jonny ASP .Net 4 10-12-2007 04:19 PM
Datagrid Nav buttons and numeric buttons Jeremy Jones ASP .Net 1 03-22-2007 08:00 AM
Hyperlinks vs Buttons ? =?Utf-8?B?SXJmYW4gQWtyYW0=?= ASP .Net 5 02-13-2005 01:33 PM
Add hyperlinks dynamically - newbie question JezB ASP .Net 6 05-25-2004 08:12 PM
Add hyperlinks dynamically - newbie question JezB ASP .Net Web Controls 6 05-25-2004 08:12 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57