Get ID in GridView
Posted
by Romil
on Stack Overflow
See other posts from Stack Overflow
or by Romil
Published on 2010-05-13T09:19:14Z
Indexed on
2010/05/13
9:24 UTC
Read the original article
Hit count: 411
Hi,
I have One grid say Grid 1 in which there are some columns. There is one view image button, one delete image button and one column which says that color column is Red or Blue.
If color column is Red the deleted button is hidden else its shown (Based on user given rights to delete a column or not).
Now a user clicks a view button for Red Color Column. If this condition is satisfied, then i want that delete icon should not be present in Grid 2.
Grid 2 has 2 columns. One is deleted image button and one is file name (which is uploaded via upload control).
So If in Grid One "View Image Button" is clicked for "Red" Column i should be able to hide the delete button from Grid 2.
I have tried by writing code in Item command but i am not able to access control of grid2. is this the correct way? Or else suggest me some correct way.
Please Make sure that code is compatible with VS 2003.
let me know if more inputs are needed.
Thanks
© Stack Overflow or respective owner