Conditional Editing in Grid View
-
Hi, I have a gridView with a colunm Adress-A SiteName-A ServiceType-A Address-B SiteName-B ServiceType-B Edit-A Edit-B it could be possible, if i click on Edit-A only the fields (Adress-A SiteName-A ServiceType-A) shown in edit mode and when i click on Edit-B the field (Address-B SiteName-B ServiceType-B) will show in edit mode in a grid.
KnightGuy
-
Hi, I have a gridView with a colunm Adress-A SiteName-A ServiceType-A Address-B SiteName-B ServiceType-B Edit-A Edit-B it could be possible, if i click on Edit-A only the fields (Adress-A SiteName-A ServiceType-A) shown in edit mode and when i click on Edit-B the field (Address-B SiteName-B ServiceType-B) will show in edit mode in a grid.
KnightGuy
In the ItemCommand event find out which button was clicked by using the CommandArgument attr. This could then fire a switch to choose the correct method (SetupFormA, SetupFormB) for looping thru the GridView so you can find and changing the the form fields required. I haven't tired this myself but that's how I would go about it to start with.