Well...your update
is working, or it's
trying to.
It's just that you are trying to update every single row in your table to the same value!
(Think yourself lucky that SQL didn't want to do that because it violates your Primary Key rules or you would have a table full of identical entries - and no way to undo it...)
Try adding a WHERE clause to your SQL to restrict it to a specific row:
SqlCommand comm = new SqlCommand("UPDATE Leaves_Type SET Leaves=@Leaves WHERE MyIdentifyingColumn=@ID");
comm.Parameters.AddWithValue("@Leaves",txtltype.Text);
comm.Parameters.AddWithValue("@ID", myIdentifingValue);