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
161
UltraWebGrid HyperLink Cell - How to implement diffrent behaviour
posted

Hi I am using 2007 vol1 CLR2.0

We have some grids on our page now some of the grid require redirect to new page to show large detail pages and others do not require it since  details for some grid is so small that we can show detail on same page though for UI consistency I want to make each first column as hyperlink for all the grids on the page but want to change behaviour of the column is there any way we can approch this

 

Parents
No Data
Reply
  • 1332
    posted

    Hi,

    You could use a Template Column and embed a LinkButton control in the column. Handle the Click event of the button, and based on the criteria of each grid, link to the appropriate target. If you need information from cells of the row to form the link you can get the cell that the link button is in using the following code:

    LinkButton button = (LinkButton)sender;

    CellItem cellItem = (CellItem)button.NamingContainer;

    UltraGridCell cell = cellItem.Cell;

    If you need just a button, not necessarily a link button, you can use the column type of button available off of a column.

Children