SIVA

SIVA

  • NA
  • 742
  • 707.5k

how to active & deactive in GridView

Apr 17 2012 5:45 AM
Dear All,

I have table with the following fields

Item ID, Item Name, Price, Active.

Here Active column contains only 0 or 1 ie.
1-Available
0-not available

Here I binded this table with Gridview with Active/Deactive link button in it.
with addition of it Edit & Delete also

Now my requirement is I need to show available items & unavailable items also in Gridview but unavailable items will be with some light color.. when i click Active/Deactive button it will be in unavailable format & Edit & Delete buttons will be in Disable mode, When user clicks again Active/Deactive button which will be in normal view & Edit & Delete buttons will be Enabled.

How can i do this?

Answers (2)