Adding Multiple values to DataGrid HyperLinkColumn dynamically

Discussion in 'ASP .Net' started by vtreddy, Nov 6, 2003.

  1. vtreddy

    vtreddy Guest

    Hi all,

    Please find the code below, here I would like to bc1 column count to the DataNavigateUrlFormatString, can any one help on this,

    BoundColumn bc1 = new BoundColumn();

    bc1.HeaderText="Count";

    bc1.DataField="Count";

    appsummaryDataGrid.Columns.Add(bc1);

    HyperLinkColumn hc1 = new HyperLinkColumn();

    hc1.DataTextField="SMS Site";

    hc1.DataTextFormatString="{0}";

    hc1.DataNavigateUrlField="SMS Site";

    hc1.DataNavigateUrlFormatString="ApplicationGroupBy.aspx?variable="+appname+"&SITE={0}";

    hc1.HeaderText="SMS Hyper Link ";

    appsummaryDataGrid.Columns.Add (hc1);



    Thanks,

    Thirupathi
     
    vtreddy, Nov 6, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. TJS
    Replies:
    2
    Views:
    2,607
  2. =?Utf-8?B?RGF2ZQ==?=

    Can't apply CSS class to DataGrid's HyperlinkColumn?

    =?Utf-8?B?RGF2ZQ==?=, Feb 27, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,196
    Martin Dechev
    Feb 27, 2004
  3. Rob Meade

    Datagrid - HyperLinkColumn

    Rob Meade, Aug 9, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    714
    Rob Meade
    Aug 9, 2004
  4. Roy
    Replies:
    1
    Views:
    1,503
  5. Davef

    Pass 2 values in the HyperLinkColumn

    Davef, Jul 30, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    204
    Davef
    Jul 30, 2003
  6. vtreddy

    Adding Multiple values to DataGrid HyperLinkColumn dynamically

    vtreddy, Nov 6, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    302
    vtreddy
    Nov 6, 2003
  7. Replies:
    1
    Views:
    1,334
    Teemu Keiski
    May 12, 2007
  8. Jimbo Jim

    additional HyperLinkColumn querystring values

    Jimbo Jim, Sep 28, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    242
    Jimbo Jim
    Sep 28, 2005
Loading...