Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
How to Add Hyperlink Columns to a ultraWebGrid Control in Infrigistics 2007 Vol 3 for CLR 2.0
posted

 I'm using Infrigistics' Ultra Web Grid control...I dont know how to dynamically create hyperlinks in a column. Can anyone guide me as to how I should accomplish this. :confused:

Requirement :

I have one grid in which display project list and grid has following columns to display

1) ProjectName

2) ProjectStartDate

3) ProjectEndDate and so on...

 

I have to display "ProjectName" as hyperlink and when user click on project within grid it should navigate to another page where he/she  can edit project detail..

But i am confuse over here how can i achivied this using ultrawebgrid !!!!!! it was so simple using normal asp.net gridview but to do same using ultrawebgrid it is so difficulty for me.....

Parents
  • 170
    Verified Answer
    posted

    hello,u may try this:

    protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e)
        {
            e.Row.Cells.FromKey("ProjectName").TargetURL = "page.aspx";    }

    if u wana control this flexible u may try writing the html ,but if u do this ,u can't use ultrawebgrid to submit data.

    protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e)
        {
            e.Row.Cells.FromKey("ProjectName").Value ="<a href='page.aspx' target='_blank'>"+e.Row.Cells.FromKey("ProjectName")+"</a>";    }

Reply Children
No Data