Hi,
I'm trying to use an ImageButton column and have different images used based on the results of a query. In other words, I will have a datacolumn which will have the url of the image to display.
For example on Page_Load if this were a normal GridBoundColumn I could do
How would I do this to set the url of a GridButtonColumn?
Doesn't work; how do I accomplish this and where?
Thanks,
Nick
I'm trying to use an ImageButton column and have different images used based on the results of a query. In other words, I will have a datacolumn which will have the url of the image to display.
For example on Page_Load if this were a normal GridBoundColumn I could do
if (dataColumn.ColumnName.ToString() == "myColumn") |
{ |
GridBoundColumn newColumn = new GridBoundColumn(); |
this.RadGrid1.MasterTableView.Columns.Add(newColumn ); |
newColumn.DataField = dataColumn.ColumnName; |
} |
How would I do this to set the url of a GridButtonColumn?
buttonColumn.ImageUrl = dataColumn.ColumnName; |
Thanks,
Nick