Editing in gridview
-
Hi experts I have googled for tips/solutions and failed to get a right method to implement following scenario. I have a gridview populated with data on page load from my source table. To make it precise I have fields Ac_Id, Ac_Name, Balance, and user_Id in my table. The user_Id and Ac_Id forms the composite key. I have say 3 rows in my table as follows 1, Cash, 1000, ABC 2. CITI, 8000, ABC 3. BOA , 6000, ABC While editing in grid I want let user edit only the balance field if Ac_Name is Cash otherwise User can Edit both Ac_Name and Balance. whle I could make both ac_name and Balance field editable but failed to achive above. Advise is solicited Thanks in advance and regards Kris
-
Hi experts I have googled for tips/solutions and failed to get a right method to implement following scenario. I have a gridview populated with data on page load from my source table. To make it precise I have fields Ac_Id, Ac_Name, Balance, and user_Id in my table. The user_Id and Ac_Id forms the composite key. I have say 3 rows in my table as follows 1, Cash, 1000, ABC 2. CITI, 8000, ABC 3. BOA , 6000, ABC While editing in grid I want let user edit only the balance field if Ac_Name is Cash otherwise User can Edit both Ac_Name and Balance. whle I could make both ac_name and Balance field editable but failed to achive above. Advise is solicited Thanks in advance and regards Kris
make Template fields in grid view. while editing give text box for that fields and according to your secnerio make the textbox read only.
Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]
-
Hi experts I have googled for tips/solutions and failed to get a right method to implement following scenario. I have a gridview populated with data on page load from my source table. To make it precise I have fields Ac_Id, Ac_Name, Balance, and user_Id in my table. The user_Id and Ac_Id forms the composite key. I have say 3 rows in my table as follows 1, Cash, 1000, ABC 2. CITI, 8000, ABC 3. BOA , 6000, ABC While editing in grid I want let user edit only the balance field if Ac_Name is Cash otherwise User can Edit both Ac_Name and Balance. whle I could make both ac_name and Balance field editable but failed to achive above. Advise is solicited Thanks in advance and regards Kris
-
make Template fields in grid view. while editing give text box for that fields and according to your secnerio make the textbox read only.
Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]
Dear Mr.Padmanabhan Thanks for tip and has worked for me kris