setting Url Format String in datagrid control dynamically

Discussion in 'ASP .Net Web Controls' started by Troy, Jun 29, 2004.

  1. Troy

    Troy Guest

    Hi
    Wondering if anyone knows how to set the Url Format String in a datagrid control through c# --
    If you place the datagrid control on a form, and go into the property builder tool - you can select a column and specify a value for the URL Format String, however I have not been able to figure how to do it through code ...

    I want to be able to move this web app to a different environment without recompiling.

    Thanks for any insights.
    Troy.
     
    Troy, Jun 29, 2004
    #1
    1. Advertising

  2. Troy

    Bobby Ryzhy Guest

    _editHyperLinkColumn.DataNavigateUrlFormatString =
    "editInstance.aspx?instanceID={0}"

    Bobby Ryzhy
    bobby@ name of domain below
    http://www.weekendtech.net


    On Tue, 29 Jun 2004 12:31:01 -0700, "Troy"
    <> wrote:

    >Hi
    >Wondering if anyone knows how to set the Url Format String in a datagrid control through c# --
    >If you place the datagrid control on a form, and go into the property builder tool - you can select a column and specify a value for the URL Format String, however I have not been able to figure how to do it through code ...
    >
    >I want to be able to move this web app to a different environment without recompiling.
    >
    >Thanks for any insights.
    >Troy.
     
    Bobby Ryzhy, Jul 7, 2004
    #2
    1. Advertising

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. MattB
    Replies:
    2
    Views:
    2,152
    MattB
    Oct 27, 2005
  2. nick
    Replies:
    1
    Views:
    517
    David Mark
    Feb 13, 2011
  3. Chris Angelico
    Replies:
    3
    Views:
    179
    Mark Lawrence
    Mar 1, 2013
  4. Peter Otten
    Replies:
    0
    Views:
    151
    Peter Otten
    Feb 28, 2013
  5. Rick Johnson
    Replies:
    0
    Views:
    154
    Rick Johnson
    Feb 28, 2013
Loading...

Share This Page