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.....
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>"; }
Thanks a lot...I did follow your instructions and it worked for me.
Thanks again...