how to active & deactive in GridView
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)
0
is it a web form or windows form? Did you apply the multiline paramenter to the textbox?
In web form click on the textmode property and select multiline. Or in windows form change multiline from false to true.