grid view
-
How can i disable a hyperlink column when the value inside is 0 Lets said is a monthly display and tehy are going to be reference to another page according to the value if the value inside the column is 1 or more i need to be hyperlink bu tif the value is 0 i do not need it to be hyperlink. How can i achieve this Thanks:-D
-
How can i disable a hyperlink column when the value inside is 0 Lets said is a monthly display and tehy are going to be reference to another page according to the value if the value inside the column is 1 or more i need to be hyperlink bu tif the value is 0 i do not need it to be hyperlink. How can i achieve this Thanks:-D
If I can understand you correctly you want to disable the hyperlink in the column based on whether the value of the cell is 0. First, you probably don't want to disable the entire column, only the individual cells in the column. You can use a template column to create a hyperlink or not depending on the value. You could also handle the databinding events such as ItemDataBound and configure the cell there.
only two letters away from being an asset
-
If I can understand you correctly you want to disable the hyperlink in the column based on whether the value of the cell is 0. First, you probably don't want to disable the entire column, only the individual cells in the column. You can use a template column to create a hyperlink or not depending on the value. You could also handle the databinding events such as ItemDataBound and configure the cell there.
only two letters away from being an asset
Yes that is right i need to disable the individual cells. How can i use the template column sto let it know that it need to be able only when the cells has a value of 1 or more Thanks
-
Yes that is right i need to disable the individual cells. How can i use the template column sto let it know that it need to be able only when the cells has a value of 1 or more Thanks
<% if cell.value == 0 %> only two letters away from being an asset