I want to be able to change the cell of "Name" to Color.Firebrick if column "Active" is false. I can't seem to be able to change it. I attempted to place the information inside of my sub that takes in GridCommandEventArgs. It looks like this:
For some reason this is not doing anything.
Do I have to put this inside a different sub? If so, what sub would that be?
I also get an error when I attempt any other action, so it seems that this is not the place I should put this code in.
Protected
Sub
myGrid_ShowInactivity(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.GridCommandEventArgs)
Handles
myGrid.ItemCommand
If
TypeOf
e.Item
Is
GridDataItem
Then
Dim
item
As
GridDataItem = e.Item
If
item(
"Active"
).Text =
"false"
Then
item(
"Name"
).Text = item(
"Name"
).Text +
" INACTIVE"
item(
"Name"
).BackColor = Color.Firebrick
item(
"Name"
).ForeColor = Color.White
End
If
End
If
End
Sub
For some reason this is not doing anything.
Do I have to put this inside a different sub? If so, what sub would that be?
I also get an error when I attempt any other action, so it seems that this is not the place I should put this code in.