Gridview edit problem
-
hai all, I have a gridview having edit button for updating a single column in my grid. Suppose i have 10 rows and having 3 columns.I am updtin 3rd column only. per row the 3rd column shd be unique. I want to check if the data exists for that column already if i click on edit button it shd not change into updatecancel. How to check the data" Here is my code for filling and updating kissy
-
hai all, I have a gridview having edit button for updating a single column in my grid. Suppose i have 10 rows and having 3 columns.I am updtin 3rd column only. per row the 3rd column shd be unique. I want to check if the data exists for that column already if i click on edit button it shd not change into updatecancel. How to check the data" Here is my code for filling and updating kissy
There is no any in-built functionality to check the duplication at the time of updating row. On GridView1_RowUpdating event when you try to update your data to database, you need to check the duplication manually. So if there is duplication, you can simply avoid update and give proper message or take action accordingly. From following link you will get an idea. http://www.aspdotnetcodes.com/GridView_Insert_Edit_Update_Delete.aspx[^] Hope this will help!
Jinal Desai - LIVE Experience is mother of sage....